SDL.SDLEvent(3kaya)

SDL.SDLEvent3kaya

An input event

Usage

SDL::SDLEvent< >

= KeyDown(SDL::SDLKey key,[SDL::KeyModifier] modifiers)

| MouseMove(Int x,Int y)

| MouseButton(Int button,Int bx,Int by)

Overview

An input event - either a key being pressed, the mouse being moved to a particular location, or a mouse button being pressed while the mouse is at a particular location.

The left mouse button is usually button 1, with the right button given number 2. In theory, a sufficiently large mouse could go up to button 255.

The SDL.KeyModifier (3kaya) list allows detection of whether particular modifier keys are pressed, allowing combinations such as 'Ctrl-Numpad7' to be detected.

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

Authors

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

License

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

From libkaya-sdl-dev 0.4.4-6.2 in Debian 8 (Jessie). Parsed by carta from the page's man source.