multiple fixes to wxJoystick under Unix and new index-based API for accessing joystick buttons and axes (patch 1678497)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,6 +39,7 @@ All:
|
||||
- Fixed crashes in helpview when opening a file.
|
||||
- Added wxMutex::LockTimeout() (Aleksandr Napylov)
|
||||
- Set locale to the default in all ports, not just wxGTK
|
||||
- Added wxJoystick::GetButtonState/Position() (Frank C Szczerba)
|
||||
- Added wxGridUpdateLocker helper class (Evgeniy Tarassov)
|
||||
- Support wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize() (Evgeniy Tarassov)
|
||||
|
||||
|
@@ -39,6 +39,14 @@ significant bit, and so on.
|
||||
A bitlist of wxJOY\_BUTTONn identifiers, where n is 1, 2, 3 or 4
|
||||
is available for historical reasons.
|
||||
|
||||
\constfunc{bool}{GetButtonState}{\param{unsigned}{ id}}
|
||||
|
||||
Returns the state of the specified joystick button.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{id}{The button id to report, from 0 to \helpref{GetNumberButtons()}{wxjoystickgetnumberbuttons} - 1}
|
||||
|
||||
\membersection{wxJoystick::GetManufacturerId}\label{wxjoystickgetmanufacturerid}
|
||||
|
||||
\constfunc{int}{GetManufacturerId}{\void}
|
||||
@@ -100,6 +108,14 @@ Returns the product name for the joystick.
|
||||
|
||||
Returns the x, y position of the joystick.
|
||||
|
||||
\constfunc{int}{GetPosition}{\param{unsigned}{ axis}}
|
||||
|
||||
Returns the position of the specified joystick axis.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{axis}{The joystick axis to report, from 0 to \helpref{GetNumberAxes()}{wxjoystickgetnumberaxes} - 1.}
|
||||
|
||||
\membersection{wxJoystick::GetPOVPosition}\label{wxjoystickgetpovposition}
|
||||
|
||||
\constfunc{int}{GetPOVPosition}{\void}
|
||||
|
Reference in New Issue
Block a user