Description | Hierarchy | Fields | Methods | Properties |
type TJoystickEvent = class(TIrrlichtEvent)
A joystick event. Unlike other events, joystick events represent the result of polling each connected joystick once per Run() of the device. Joystick events will not be generated by default. If joystick support is available for the active device, _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ is defined in the C++ source and TIrrlichtDevice.ActivateJoysticks() has been called, an event of this type will be generated once per joystick per TIrrlichtDevice.Run() regardless of whether the state of the joystick has actually changed.
![]() |
constructor Create(NButtonStates: TJoystickButtonSet; const NAxes: TJoystickAxisArray; NPOV: Word; NID: Byte); |
![]() |
property Axes: TJoystickAxisArray read FAxes; |
![]() |
property JoystickID: Byte read FID; |
![]() |
property POVHat: Word read FPOV; |
![]() |
property PressedButtons: TJoystickButtonSet read FButtonStates; |
![]() |
constructor Create(NButtonStates: TJoystickButtonSet; const NAxes: TJoystickAxisArray; NPOV: Word; NID: Byte); |
Constructor. You'll have to call this manually if you want to Post() an event. Parameters
|
![]() |
property Axes: TJoystickAxisArray read FAxes; |
The current position of all |
![]() |
property JoystickID: Byte read FID; |
The ID of the joystick which generated this event. |
![]() |
property POVHat: Word read FPOV; |
The POV represents the angle of the POV hat in degrees * 100, from 0 to 35,900. A value of 65535 indicates that the POV hat is centered (or not present). This value is only supported on Windows. On Linux, the POV hat will be sent as 2 axes instead. |
![]() |
property PressedButtons: TJoystickButtonSet read FButtonStates; |
A set of button states. |