Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 9 and Version 10 of Addons/SdlLib

Show
Ignore:
Author:
JarrettBillingsley (IP: 173.75.24.72)
Timestamp:
04/10/11 05:47:01 (13 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Addons/SdlLib

    v9 v10  
    219219||'''"keyUp"'''||A keyboard key goes from being pressed to being up.||`sym: int, mod: int`||Same meaning as for "keyDown".|| 
    220220||'''"mouseMotion"'''||The mouse (or other pointing device) is moved.||`x: int, y: int, dx: int, dy: int`||`x` and `y` are the absolute coordinates of the mouse within the application window, while `dx` and `dy` are the change in `x` and `y` from the previous mouse position.|| 
    221 ||'''"mouseDown"'''||A mouse button goes from being up to being pressed.||`button: int`||`button` indicates which button was pressed, with 1 being left, 2 right, 3 middle, 4 rolling the scrollwheel up, and 5 rolling the scrollwheel down. Each "click" of the scrollwheel counts as pressing and then releasing these buttons. '''TODO: get some kind of mouse button enumeration?''' 
     221||'''"mouseDown"'''||A mouse button goes from being up to being pressed.||`button: int`||`button` indicates which button was pressed, with 1 being left, 2 middle, 3 right, 4 rolling the scrollwheel up, and 5 rolling the scrollwheel down. Each "click" of the scrollwheel counts as pressing and then releasing these buttons. '''TODO: get some kind of mouse button enumeration?''' 
    222222||'''"mouseUp"'''||A mouse button goes from being pressed to being up.||`button: int`||Same meaning as for "mouseDown".|| 
    223223||'''"joyAxis"'''||A joystick axis changes value.||`joy: int, axis: int, val: int`||`joy` is the index of the joystick, `axis` is the index of the axis on that joystick, and `val` is the new position of that axis in the range -32768 to 32767.||