Key.IsPressed (gb.sdl2)

Static Function IsPressed ( Key As Integer [ , IgnoreLayout As Boolean ] ) As Boolean

Return if a specific key is pressed.

  • Key is the key constant.

  • If IgnoreLayout is TRUE, then the keyboard layout is ignored, i.e. an american keyboard layout is used.