SDL MouseButtonEvent: Unterschied zwischen den Versionen

Aus DGL Wiki
Wechseln zu: Navigation, Suche
(Name)
(MouseMotion->MouseButton, Danke@LaBoda)
Zeile 1: Zeile 1:
= SDL_MouseMotionEvent =
+
= SDL_MouseButtonEvent =
  
 
<br>
 
<br>
Zeile 8: Zeile 8:
  
 
== Delphi-Spezifikation ==
 
== Delphi-Spezifikation ==
  type '''SDL_MouseMotionEvent''' = record
+
  type '''SDL_MouseButtonEvent''' = record
 
         ''type''  : Uint8;
 
         ''type''  : Uint8;
 
         ''button'' : Uint8;
 
         ''button'' : Uint8;

Version vom 1. September 2005, 15:07 Uhr

SDL_MouseButtonEvent


Name

SDL_MouseButtonEvent - Mausknopf-Ereignis


Delphi-Spezifikation

type SDL_MouseButtonEvent = record
       type   : Uint8;
       button : Uint8;
       state  : Uint8;
       x, y   : Uint16;
     end


Parameter

type SDL_MOUSEBUTTONDOWN oder SDL_MOUSEBUTTONUP
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.

Siehe auch

SDL_Event, SDL_MouseMotionEvent