| Extracted from Pike v7.8 release 700 at 2013-06-08.

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