16#ifndef QGS3DGAMEPADCONTROLLER_H
17#define QGS3DGAMEPADCONTROLLER_H
55 if ( qobject_cast< QgsGamepad3DMapController * >( sipCpp ) )
57 sipType = sipType_QgsGamepad3DMapController;
68 QgsGamepad3DMapController(
int gamepadDeviceId, QObject *parent
SIP_TRANSFERTHIS =
nullptr );
71 QString deviceId() const override;
80 bool isConnected() const;
90 double axisLeftX() const;
95 double axisLeftY() const;
100 double axisRightX() const;
105 double axisRightY() const;
110 bool buttonA() const;
115 bool buttonB() const;
120 bool buttonX() const;
125 bool buttonY() const;
130 bool buttonL1() const;
135 bool buttonR1() const;
140 double buttonL2() const;
145 double buttonR2() const;
152 bool buttonSelect() const;
159 bool buttonStart() const;
166 bool buttonL3() const;
173 bool buttonR3() const;
178 bool buttonUp() const;
183 bool buttonDown() const;
188 bool buttonLeft() const;
193 bool buttonRight() const;
198 bool buttonCenter() const;
205 bool buttonGuide() const;
214 void connectedChanged(
bool value );
221 void axisLeftXChanged(
double value );
228 void axisLeftYChanged(
double value );
235 void axisRightXChanged(
double value );
242 void axisRightYChanged(
double value );
249 void buttonAChanged(
bool value );
256 void buttonBChanged(
bool value );
263 void buttonXChanged(
bool value );
270 void buttonYChanged(
bool value );
277 void buttonL1Changed(
bool value );
284 void buttonR1Changed(
bool value );
291 void buttonL2Changed(
double value );
298 void buttonR2Changed(
double value );
305 void buttonSelectChanged(
bool value );
312 void buttonStartChanged(
bool value );
319 void buttonL3Changed(
bool value );
326 void buttonR3Changed(
bool value );
333 void buttonUpChanged(
bool value );
340 void buttonDownChanged(
bool value );
347 void buttonLeftChanged(
bool value );
354 void buttonRightChanged(
bool value );
361 void buttonCenterChanged(
bool value );
368 void buttonGuideChanged(
bool value );
372 int mGamepadDeviceId = -1;
373 QPointer< QGamepad> mGamepad;
Abstract base class for all 3D map controllers.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_IF_MODULE(condition)