i solved the problem:
OnEvent():
public bool OnEvent(Event eve)
{
if (eve.Type == EventType.KeyInput)
{
keys[(int) eve.Key] = eve.KeyPressedDown;
return true;
}
return false;
} Init:
keys = new bool[(int) KeyCode.KEY_KEY_CODES_COUNT]; gameloop: if (keys[(int) KeyCode.KEY_UP])
do something ...
Search found 3 matches
- Wed Mar 08, 2006 10:27 am
- Forum: Irrlicht.NET
- Topic: bool keyboard input with c#
- Replies: 3
- Views: 2198
- Wed Mar 08, 2006 10:02 am
- Forum: Irrlicht.NET
- Topic: bool keyboard input with c#
- Replies: 3
- Views: 2198
- Tue Mar 07, 2006 5:39 pm
- Forum: Irrlicht.NET
- Topic: bool keyboard input with c#
- Replies: 3
- Views: 2198
bool keyboard input with c#
hi,
does anyone know how to implement the keyboard input in c# like: http://www.irrforge.org/index.php/Keyboard_Input
it would be a nice extension for the irrlicht wiki.
does anyone know how to implement the keyboard input in c# like: http://www.irrforge.org/index.php/Keyboard_Input
it would be a nice extension for the irrlicht wiki.