val is_pressed : Keycode.t -> bool
Module OgamlCore.LL.Keyboard
Getting real-time keyboard informationThis module provides a low-level access to the keyboard in real-time. You should probably use the OgamlGraphics.Keyboard wrapper instead.
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