X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Event.html-inc;h=de04a03c6b8d8c9d400efe062be0a22bf70856cf;hb=0b221bb4fce84647a6cb9d7343de7330fb561c71;hp=0d2db37e5c56cf794ddeed8ab30cc13e1fe26977;hpb=471a0af80b3fe584289fe0bde4ed0b0ca253fbd5;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Event.html-inc b/pages/SDL-Event.html-inc index 0d2db37..de04a03 100644 --- a/pages/SDL-Event.html-inc +++ b/pages/SDL-Event.html-inc @@ -263,7 +263,7 @@ and when a key is pressed (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).

key_state

@@ -303,7 +303,7 @@ This field is very useful when you are checking for certain key presses, like so

key_unicode

-

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. 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).

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).

motion_x, motion_y

@@ -554,7 +554,7 @@ screen updates will still report success even though the application will no lon

AUTHORS

Top

-

See AUTHORS in SDL.

+

See /SDL.html#AUTHORS.

SEE ALSO

Top