wx.adv.Joystick allows an application to control one or more joysticks.
See also
Constructor. |
|
Returns the state of the joystick buttons. |
|
Returns the manufacturer id. |
|
Returns the movement threshold, the number of steps outside which the joystick is deemed to have moved. |
|
Returns the number of axes for this joystick. |
|
Returns the number of buttons for this joystick. |
|
Returns the number of joysticks currently attached to the computer. |
|
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units. |
|
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units, but limited to return 0, 9000, 18000 or 27000. |
|
Returns the maximum polling frequency. |
|
Returns the minimum polling frequency. |
|
Returns the x, y position of the joystick. |
|
Returns the product id for the joystick. |
|
Returns the product name for the joystick. |
|
Returns the maximum rudder position. |
|
Returns the minimum rudder position. |
|
Returns the rudder position. |
|
Returns the maximum U position. |
|
Returns the minimum U position. |
|
Gets the position of the fifth axis of the joystick, if it exists. |
|
Returns the maximum V position. |
|
Returns the minimum V position. |
|
Gets the position of the sixth axis of the joystick, if it exists. |
|
Returns the maximum x position. |
|
Returns the minimum x position. |
|
Returns the maximum y position. |
|
Returns the minimum y position. |
|
Returns the maximum z position. |
|
Returns the minimum z position. |
|
Returns the z position of the joystick. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Releases the capture set by SetCapture. |
|
Sets the capture to direct joystick events to win. |
|
Sets the movement threshold, the number of steps outside which the joystick is deemed to have moved. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
Joystick(joystick: int=JOYSTICK1) -> None
Joystick allows an application to control one or more joysticks.
Constructor.
joystick may be one of wx.JOYSTICK1
, wx.JOYSTICK2
, indicating the joystick controller of interest.
joystick (int)
None
GetButtonState (self)
Returns the state of the joystick buttons.
Every button is mapped to a single bit in the returned integer, with the first button being mapped to the least significant bit, and so on.
A bitlist of JOY_BUTTONn identifiers, where n is 1, 2, 3 or 4 is available for historical reasons.
int
GetButtonState (self, id : int)
Returns the state of the specified joystick button.
id (int) – The button id to report, from 0 to GetNumberButtons
- 1
bool
Returns the manufacturer id.
int
int
int
Returns the movement threshold, the number of steps outside which the joystick is deemed to have moved.
int
Returns the number of axes for this joystick.
int
Returns the number of buttons for this joystick.
int
Returns the number of joysticks currently attached to the computer.
int
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units.
Returns -1 on error.
int
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units, but limited to return 0, 9000, 18000 or 27000.
Returns -1 on error.
int
Returns the maximum polling frequency.
int
Returns the minimum polling frequency.
int
GetPosition (self)
Returns the x, y position of the joystick.
Point
GetPosition (self, axis : int)
Returns the position of the specified joystick axis.
axis (int) – The joystick axis to report, from 0 to GetNumberAxes
- 1.
int
Returns the product id for the joystick.
int
Returns the product name for the joystick.
str
Returns the maximum rudder position.
int
Returns the minimum rudder position.
int
Returns the rudder position.
int
Returns the maximum U position.
int
Returns the minimum U position.
int
Gets the position of the fifth axis of the joystick, if it exists.
int
Returns the maximum V position.
int
Returns the minimum V position.
int
Gets the position of the sixth axis of the joystick, if it exists.
int
Returns the maximum x position.
int
Returns the minimum x position.
int
Returns the maximum y position.
int
Returns the minimum y position.
int
Returns the maximum z position.
int
Returns the minimum z position.
int
Returns the z position of the joystick.
int
Returns True
if the joystick has a point of view control.
bool
Returns True
if the joystick point-of-view supports discrete values (centered, forward, backward, left, and right).
bool
Returns True
if the joystick point-of-view supports continuous degree bearings.
bool
Returns True
if there is a rudder attached to the computer.
bool
Returns True
if the joystick has a U axis.
bool
Returns True
if the joystick has a V axis.
bool
Returns True
if the joystick has a Z axis.
bool
Returns True
if the joystick is functioning.
bool
Releases the capture set by SetCapture.
bool
True
if the capture release succeeded.
See also
Sets the capture to direct joystick events to win.
win (wx.Window) – The window that will receive joystick events.
pollingFreq (int) – If zero, movement events are sent when above the threshold. If greater than zero, events are received every pollingFreq milliseconds.
bool
True
if the capture succeeded.
See also
Sets the movement threshold, the number of steps outside which the joystick is deemed to have moved.
threshold (int)
None
See GetButtonState
See GetMaxAxes
See GetMaxButtons
See GetNumberAxes
See GetNumberButtons
See GetPOVPosition
See GetPollingMax
See GetPollingMin
See GetPosition
See GetProductId
See GetProductName
See GetRudderMax
See GetRudderMin
See GetUPosition
See GetVPosition
See GetZPosition