16#ifndef QGS2DGAMEPADCONTROLLER_H 
   17#define QGS2DGAMEPADCONTROLLER_H 
   55    if ( qobject_cast< QgsGamepad2DMapController * >( sipCpp ) )
 
   57      sipType = sipType_QgsGamepad2DMapController;
 
   68    QgsGamepad2DMapController( 
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;
 
  212    void connectedChanged( 
bool value );
 
  219    void axisLeftXChanged( 
double value );
 
  226    void axisLeftYChanged( 
double value );
 
  233    void axisRightXChanged( 
double value );
 
  240    void axisRightYChanged( 
double value );
 
  247    void buttonAChanged( 
bool value );
 
  254    void buttonBChanged( 
bool value );
 
  261    void buttonXChanged( 
bool value );
 
  268    void buttonYChanged( 
bool value );
 
  275    void buttonL1Changed( 
bool value );
 
  282    void buttonR1Changed( 
bool value );
 
  289    void buttonL2Changed( 
double value );
 
  296    void buttonR2Changed( 
double value );
 
  303    void buttonSelectChanged( 
bool value );
 
  310    void buttonStartChanged( 
bool value );
 
  317    void buttonL3Changed( 
bool value );
 
  324    void buttonR3Changed( 
bool value );
 
  331    void buttonUpChanged( 
bool value );
 
  338    void buttonDownChanged( 
bool value );
 
  345    void buttonLeftChanged( 
bool value );
 
  352    void buttonRightChanged( 
bool value );
 
  359    void buttonCenterChanged( 
bool value );
 
  366    void buttonGuideChanged( 
bool value );
 
  369    int mGamepadDeviceId = -1;
 
  370    QPointer< QGamepad> mGamepad;
 
Abstract base class for all 2D map controllers.
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
#define SIP_IF_MODULE(condition)