Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
SDL

Method SDL.get_key_state()


Method get_key_state

string 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.