What else then keyboard input trigger EET_KEY_INPUT_EVENT?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

What else then keyboard input trigger EET_KEY_INPUT_EVENT?

Post by MasterGod »

When there's a EET_KEY_INPUT_EVENT event, what may cause it except a keyboard hit?

Edit:
MasterGod wrote:Thanks but I meant that is the..
I'll rewrite the question:
Is the engine designed in a way that only input devices such as the keyboard will trigger that event?
Last edited by MasterGod on Thu Jan 31, 2008 1:43 pm, edited 2 times in total.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Morgawr
Posts: 95
Joined: Wed Sep 26, 2007 7:04 pm

Re: What else then keyboard input trigger EET_KEY_INPUT_EVEN

Post by Morgawr »

MasterGod wrote:When there's a EET_KEY_INPUT_EVENT event, what may cause it except a keyboard hit?
Calling a dos interrupt? Not sure...
CppJunky
Posts: 6
Joined: Wed Jan 16, 2008 8:08 am
Location: Germany
Contact:

Post by CppJunky »

Some code sending fake messages in order to force the event? (dirty stuff, but Its beeing done sometimes)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Depends on the device. I can only find 3 places where that event is generated:

CIrrDeviceLinux.cpp
In CIrrDeviceLinux::run()

CIrrDeviceSDL.cpp
In CIrrDeviceSDL::run()

CIrrDeviceWin32.cpp
In WndProc()

(grep for 'EventType = irr::EET_KEY_INPUT_EVENT' to find them)

You could stick a breakpoint on each one and find out.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Thanks but I meant that is the..
I'll rewrite the question:
Is the engine designed in a way that only input devices such as the keyboard will trigger that event?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I can't see any way other than a device keyup/keydown event.

Windows:
case WM_KEYDOWN:
case WM_KEYUP:


SDL
case SDL_KEYDOWN:
case SDL_KEYUP:

Linux:
case KeyRelease:
case KeyPress:
Last edited by rogerborg on Thu Jan 31, 2008 1:57 pm, edited 1 time in total.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Are you getting keyboard events that you're not expecting or do you want to fire a keyboard event yourself (not sure why you'd want to do that though)?

I think you need to explain yourself a bit better when posting questions ;)
Image Image Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

I just wanted to be sure that's the way it's working.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Then don't take our word for it. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply