16#ifndef QGS2DGAMEPADCONTROLLER_H 
   17#define QGS2DGAMEPADCONTROLLER_H 
   55    if ( qobject_cast<QgsGamepad2DMapController *>( sipCpp ) )
 
   57      sipType = sipType_QgsGamepad2DMapController;
 
   67    QgsGamepad2DMapController( 
int gamepadDeviceId, QObject *parent 
SIP_TRANSFERTHIS = 
nullptr );
 
   70    QString deviceId() const override;
 
   79    bool isConnected() const;
 
   89    double axisLeftX() const;
 
   94    double axisLeftY() const;
 
   99    double axisRightX() const;
 
  104    double axisRightY() const;
 
  109    bool buttonA() const;
 
  114    bool buttonB() const;
 
  119    bool buttonX() const;
 
  124    bool buttonY() const;
 
  129    bool buttonL1() const;
 
  134    bool buttonR1() const;
 
  139    double buttonL2() const;
 
  144    double buttonR2() const;
 
  151    bool buttonSelect() const;
 
  158    bool buttonStart() const;
 
  165    bool buttonL3() const;
 
  172    bool buttonR3() const;
 
  177    bool buttonUp() const;
 
  182    bool buttonDown() const;
 
  187    bool buttonLeft() const;
 
  192    bool buttonRight() const;
 
  197    bool buttonCenter() const;
 
  204    bool buttonGuide() const;
 
  211    void connectedChanged( 
bool value );
 
  218    void axisLeftXChanged( 
double value );
 
  225    void axisLeftYChanged( 
double value );
 
  232    void axisRightXChanged( 
double value );
 
  239    void axisRightYChanged( 
double value );
 
  246    void buttonAChanged( 
bool value );
 
  253    void buttonBChanged( 
bool value );
 
  260    void buttonXChanged( 
bool value );
 
  267    void buttonYChanged( 
bool value );
 
  274    void buttonL1Changed( 
bool value );
 
  281    void buttonR1Changed( 
bool value );
 
  288    void buttonL2Changed( 
double value );
 
  295    void buttonR2Changed( 
double value );
 
  302    void buttonSelectChanged( 
bool value );
 
  309    void buttonStartChanged( 
bool value );
 
  316    void buttonL3Changed( 
bool value );
 
  323    void buttonR3Changed( 
bool value );
 
  330    void buttonUpChanged( 
bool value );
 
  337    void buttonDownChanged( 
bool value );
 
  344    void buttonLeftChanged( 
bool value );
 
  351    void buttonRightChanged( 
bool value );
 
  358    void buttonCenterChanged( 
bool value );
 
  365    void buttonGuideChanged( 
bool value );
 
  368    int mGamepadDeviceId = -1;
 
  369    QPointer<QGamepad> mGamepad;
 
Abstract base class for all 2D map controllers.
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
#define SIP_IF_MODULE(condition)