Extracted from Pike v7.4 release 117 at 2004-07-26.
pike.ida.liu.se
[Top]
predef::
SDL

Method SDL.get_key_state()


Method get_key_state

string SDL.get_key_state()

Description

Gets a snapshot of the current keyboard state. The current state is return as a string. The string is indexed by the SDL.K_* symbols. A value of 1 means the key is pressed and a value of 0 means its not.

Note

SDL.pump_events() to update the state array.