.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "SDL.SDLEvent" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" SDL::SDLEvent \- An input event .SH "SYNOPSIS" .B SDL::SDLEvent< \fI\fP .B > .IP "" -2 = .BI "KeyDown(" "SDL::SDLKey key,[SDL::KeyModifier] modifiers" ")" .IP "" -2 | .BI "MouseMove(" "Int x,Int y" ")" .IP "" -2 | .BI "MouseButton(" "Int button,Int bx,Int by" ")" .SH "DESCRIPTION" .PP 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. .PP 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. .PP The .B "SDL.KeyModifier"(3kaya) list allows detection of whether particular modifier keys are pressed, allowing combinations such as 'Ctrl-Numpad7' to be detected. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH 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. .SH "RELATED" .PD 0 .PP .B "SDL.SDLKey"(3kaya) .PD 0.4v