GetAsyncKeyState() Equivalent

Discussion about everything. New games, 3d math, development tips...
Post Reply
AlexL
Posts: 184
Joined: Tue Mar 02, 2004 6:06 pm
Location: Washington State

GetAsyncKeyState() Equivalent

Post by AlexL »

Okies, this post is going to be fairly short; as there is not much to ask or explain. But I am looking to know, without using a library like SDL, the Linux equivalent to the Windows GetAsyncKeyState method. I know that Irrlicht has a built in input class, but I am currently attempting to bypass that and the pDevice->run() method for further control over my update loops. I thank anyone that can provide any insight to this matter :)
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Read in CIrrDeviceLinux.cpp. There's an event handler which reads the X11 events and sends out Irrlicht events. You cannot check for pressed keys directly, just via event handlers.
AlexL
Posts: 184
Joined: Tue Mar 02, 2004 6:06 pm
Location: Washington State

Post by AlexL »

Okies, thank you for the help Hybrid. I haven't done much Linux specific programming outside of built in Irrlicht events, so this shall be a learning experiance for me :D
Post Reply