SDL MouseButtonEvent: Unterschied zwischen den Versionen
Aus DGL Wiki
I0n0s (Diskussion | Beiträge) K |
I0n0s (Diskussion | Beiträge) K (Parameter der SDL.pas angepasst) |
||
| Zeile 8: | Zeile 8: | ||
== Delphi-Spezifikation == | == Delphi-Spezifikation == | ||
| − | type ''' | + | type '''TSDL_MouseButtonEvent''' = record |
''type_'' : Uint8; | ''type_'' : Uint8; | ||
| + | ''which'' : Uint8; | ||
''button'' : Uint8; | ''button'' : Uint8; | ||
''state'' : Uint8; | ''state'' : Uint8; | ||
| Zeile 22: | Zeile 23: | ||
! ''type_'' | ! ''type_'' | ||
| '''SDL_MOUSEBUTTONDOWN''' oder '''SDL_MOUSEBUTTONUP''' | | '''SDL_MOUSEBUTTONDOWN''' oder '''SDL_MOUSEBUTTONUP''' | ||
| + | |- | ||
| + | ! ''which'' | ||
| + | | Das Mausgerätindex. | ||
|- | |- | ||
! ''button'' | ! ''button'' | ||
Version vom 14. September 2005, 19:47 Uhr
Inhaltsverzeichnis
SDL_MouseButtonEvent
Name
SDL_MouseButtonEvent - Mausknopf-Ereignis
Delphi-Spezifikation
type TSDL_MouseButtonEvent = record
type_ : Uint8;
which : Uint8;
button : Uint8;
state : Uint8;
x, y : Uint16;
end
Parameter
| type_ | SDL_MOUSEBUTTONDOWN oder SDL_MOUSEBUTTONUP |
|---|---|
| which | Das Mausgerätindex. |
| button | Der Mausknopfindex: (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT, SDL_BUTTON_WHEELUP, SDL_BUTTON_WHEELDOWN) |
| state | SDL_PRESSED oder SDL_RELEASED |
| x, y | x- und y-Koordinate der Mausposition zum Zeitpunkt des Tastendrucks |
Beschreibung
Meldet, wenn eine Maustaste gedrückt wurde. Der Tastenstatus kann mit Hilfe von SDL_Button(x) abgefragt werden.
Hinweise
Bei Benutzung des Mausrades werden 2 Ereignisse erzeugt, ein SDL_MOUSEBUTTONDOWN und ein SDL_MOUSEBUTTONUP Ereignis.