Search found 3 matches

by olli
Wed Mar 08, 2006 10:27 am
Forum: Irrlicht.NET
Topic: bool keyboard input with c#
Replies: 3
Views: 2198

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 ...
by olli
Wed Mar 08, 2006 10:02 am
Forum: Irrlicht.NET
Topic: bool keyboard input with c#
Replies: 3
Views: 2198

hi theandrew80, thanks for the post but i seek for input method to perform smooth movement. i search for somthing like this in c#:

init:
bool keys[irr::KEY_KEY_CODES_COUNT];

for(int x=0; x<irr::KEY_KEY_CODES_COUNT; x++)
keys[x] = false;
OnEvent():
if(event.EventType == irr::EET_KEY_INPUT_EVENT ...
by olli
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. ;)