From: Tobias Leich type=SDL_KEYDOWN
or key_state=SDL_
then an
SDL_RELEASED
when released and pressed again. For these keys KEYUP
and KEYDOWN
events are therefore
analogous to the state of the caps lock and num lock LEDs rather than the keys themselves.
These special cases are required for compatibility with Sun workstations.
Note: Repeating SDL_KEYDOWN
events will occur if key repeat is enabled (see enable_key_repeat (enable_key_repeat in SDL::EVENTS)).
Note: Repeating SDL_KEYDOWN
events will occur if key repeat is enabled (see enable_key_repeat ("enable_key_repeat" in SDL::EVENTS)).
The unicode
field is only used when UNICODE translation is enabled with enable_unicode (enable_unicode in SDL::EVENTS).
+
The unicode
field is only used when UNICODE translation is enabled with enable_unicode ("enable_unicode" in SDL::EVENTS).
If unicode
is non-zero then this is the UNICODE character corresponding to the keypress.
If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character:
my $char;
@@ -332,7 +332,7 @@ button states (motion_state
).
The button state can be interpreted using the SDL_BUTTON
macro (see get_mouse_state (get_mouse_state in SDL::EVENTS)).
The button state can be interpreted using the SDL_BUTTON
macro (see get_mouse_state ("get_mouse_state" in SDL::EVENTS)).
Core | ||
SDL | - Simple DirectMedia Layer for Perl | |
SDL::Credits | - Authors and contributors of the SDL Perl project | |
SDL::Deprecated | - Log of Deprecated items per release | |
SDL::Time | - An SDL Perl extension for managing timers |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | - Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | - General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | - Bindings to the video category in SDL API |
Structure | ||
SDL::Color | - Format independent color description | |
SDL::Overlay | - YUV Video overlay | |
SDL::Palette | - Color palette for 8-bit pixel formats | |
SDL::PixelFormat | - Stores surface format information | |
SDL::Rect | - Defines a rectangular area | |
SDL::Surface | - Graphic surface structure | |
SDL::VideoInfo | - Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::OpenGL | - Using SDL with OpenGL | |
SDL::Cookbook::PDL |
Extension | ||
SDLx::App | - a SDL perl extension | |
SDLx::Layer | - Storage object for surface and position information | |
SDLx::LayerManager | - Extension for managing layers in a 2D world | |
SDLx::Rect | - SDL extension for storing and manipulating rectangular coordinates | |
SDLx::SFont | - Extension making fonts out of images and printing them | |
SDLx::Sound | ||
SDLx::Sprite | - interact with images quick and easily in SDL | |
SDLx::Sprite::Animated | - create animated SDL sprites easily! | |
SDLx::Surface | - Graphic surface matrix extension |
Controller | ||
SDLx::Controller | - Handles the loops for events, movement and rendering | |
SDLx::Controller::Interface | - Interface Physics and Rendering with the Controller with callbacks |
GFX | ||
SDL::GFX::Framerate | - framerate calculating functions | |
SDL::GFX::Primitives | - basic drawing functions |
Structure | ||
SDL::GFX::FPSManager | - data structure used by SDL::GFX::Framerate |
Image | ||
SDL::Image | - Bindings for the SDL_Image library |
Mixer | ||
SDL::Mixer | - Sound and music functions | |
SDL::Mixer::Channels | - SDL::Mixer channel functions and bindings | |
SDL::Mixer::Effects | - sound effect functions | |
SDL::Mixer::Groups | - Audio channel group functions | |
SDL::Mixer::Music | - functions for music | |
SDL::Mixer::Samples | - functions for loading sound samples |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk | |
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Pango | ||
SDL::Pango | - Text rendering engine |
Structure | ||
SDL::Pango::Context | - Context object for SDL::Pango |
TODO | ||
SDL::MPEG | - a SDL perl extension | |
SDL::SMPEG | - a SDL perl extension |
MultiThread | ||
SDL::MultiThread | - Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
GFX | ||
SDL::GFX::BlitFunc | - blitting functions | |
SDL::GFX::ImageFilter | - image filtering functions | |
SDL::GFX::Rotozoom | - rotation and zooming functions for surfaces |
TTF | ||
SDL::TTF | - True Type Font functions (libfreetype) |
Structure | ||
SDL::TTF::Font | - Font object type for SDL_ttf |
Tutorials | ||
SDL::Tutorial | - introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::LunarLander | - a small tutorial on Perl SDL |
Core | ||
SDL | - Simple DirectMedia Layer for Perl | |
SDL::Credits | - Authors and contributors of the SDL Perl project | |
SDL::Deprecated | - Log of Deprecated items per release | |
SDL::Time | - An SDL Perl extension for managing timers |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | - Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | - General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | - Bindings to the video category in SDL API |
Structure | ||
SDL::Color | - Format independent color description | |
SDL::Overlay | - YUV Video overlay | |
SDL::Palette | - Color palette for 8-bit pixel formats | |
SDL::PixelFormat | - Stores surface format information | |
SDL::Rect | - Defines a rectangular area | |
SDL::Surface | - Graphic surface structure | |
SDL::VideoInfo | - Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::OpenGL | - Using SDL with OpenGL | |
SDL::Cookbook::PDL |
Extension | ||
SDLx::App | - a SDL perl extension | |
SDLx::Layer | - Storage object for surface and position information | |
SDLx::LayerManager | - Extension for managing layers in a 2D world | |
SDLx::Rect | - SDL extension for storing and manipulating rectangular coordinates | |
SDLx::SFont | - Extension making fonts out of images and printing them | |
SDLx::Sound | ||
SDLx::Sprite | - interact with images quick and easily in SDL | |
SDLx::Sprite::Animated | - create animated SDL sprites easily! | |
SDLx::Surface | - Graphic surface matrix extension |
Controller | ||
SDLx::Controller | - Handles the loops for events, movement and rendering | |
SDLx::Controller::Interface | - Interface Physics and Rendering with the Controller with callbacks |
GFX | ||
SDL::GFX::Framerate | - framerate calculating functions | |
SDL::GFX::Primitives | - basic drawing functions |
Structure | ||
SDL::GFX::FPSManager | - data structure used by SDL::GFX::Framerate |
Image | ||
SDL::Image | - Bindings for the SDL_Image library |
Mixer | ||
SDL::Mixer | - Sound and music functions | |
SDL::Mixer::Channels | - SDL::Mixer channel functions and bindings | |
SDL::Mixer::Effects | - sound effect functions | |
SDL::Mixer::Groups | - Audio channel group functions | |
SDL::Mixer::Music | - functions for music | |
SDL::Mixer::Samples | - functions for loading sound samples |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk | |
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Pango | ||
SDL::Pango | - Text rendering engine |
Structure | ||
SDL::Pango::Context | - Context object for SDL::Pango |
TODO | ||
SDL::MPEG | - a SDL perl extension | |
SDL::SMPEG | - a SDL perl extension |
MultiThread | ||
SDL::MultiThread | - Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
GFX | ||
SDL::GFX::BlitFunc | - blitting functions | |
SDL::GFX::ImageFilter | - image filtering functions | |
SDL::GFX::Rotozoom | - rotation and zooming functions for surfaces |
TTF | ||
SDL::TTF | - True Type Font functions (libfreetype) |
Structure | ||
SDL::TTF::Font | - Font object type for SDL_ttf |
Tutorials | ||
SDL::Tutorial | - introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::LunarLander | - a small tutorial on Perl SDL |