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.
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Wed Jan 30, 2008 4:40 pm
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.
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Morgawr
Posts: 95 Joined: Wed Sep 26, 2007 7:04 pm
Post
by Morgawr » Wed Jan 30, 2008 4:45 pm
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 » Wed Jan 30, 2008 8:27 pm
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 » Wed Jan 30, 2008 11:15 pm
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.
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Thu Jan 31, 2008 1:42 pm
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?
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 » Thu Jan 31, 2008 1:53 pm
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.
JP
Posts: 4526 Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:
Post
by JP » Thu Jan 31, 2008 1:56 pm
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
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Thu Jan 31, 2008 2:10 pm
I just wanted to be sure that's the way it's working.
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 » Thu Jan 31, 2008 2:53 pm
Then don't take
our word for it.