You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
LostKhaos Posted:
Well, you wouldn’t use windows.h to be sure but the hex code for key strokes should be universal.
The same principle can be applied in linux using different libraries (can’t remember them offhand) as the root user add it to /etc/inittab or /etc/init.d
The preceding code was written in “Dev C++” for Win32, and is actually the base code for a Text Adventure Engine I am working on. (The TAE has much more code.)
Another way to do it in linux is to use evbug [4298922.635000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 0 [4298922.635000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 4, Code: 4, Value: 200 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 1 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 4, Code: 4, Value: 200 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 0 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 STGill edited this message on 08/05/2009 3:50PM |
|
Posted On: 08/05/2009 3:48PM | View STGill's Profile | # |