Re: key press events & holding keys down



I deal with object state (direction of travel, phaser firing, speed,
acceleration/deceleration) thru a application framework triggered update
event which is broadcast to all physical objects (a in-space
minesweeping game.)

The broadcasted event includes data about for example :
1 the program-estimated (guestimate) about the state of the keyboard's
keys.
2 mouse state

The framework must pick up all the keyboard related X11 events including
focus-notify and key-press/key-release.

The update event is triggered by a time-out event.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]