Module OgamlCore.LL.Keyboard

Getting real-time keyboard information

This module provides a low-level access to the keyboard in real-time. You should probably use the OgamlGraphics.Keyboard wrapper instead.

val is_pressed : Keycode.t -> bool
Returns true iff the given key is pressed
See : OgamlCore.Keycode
val is_shift_down : unit -> bool
Returns true iff the shift modifier is currently active
val is_ctrl_down : unit -> bool
Returns true iff the ctrl modifier (or cmd under OSX) is currently active
val is_alt_down : unit -> bool
Returns true iff the alt modifier is currently active