1 #ifndef __CONTROLLERWIDGET_H__
2 #define __CONTROLLERWIDGET_H__
4 #include <QtWidgets/QtWidgets>
7 class ControllerWidget
: public QWidget
12 ControllerWidget(QWidget
* parent
= 0);
14 QSize
sizeHint(void) const;
15 QSizePolicy
sizePolicy(void) const;
18 void paintEvent(QPaintEvent
*);
19 void mousePressEvent(QMouseEvent
*);
20 void mouseReleaseEvent(QMouseEvent
*);
21 void mouseMoveEvent(QMouseEvent
*);
22 void leaveEvent(QEvent
*);
25 void DrawBorderedText(QPainter
&, int, int, QString
);
28 void KeyDefined(int, uint32_t);
40 static char keyName1
[96][16];
41 static char keyName2
[64][16];
42 static char hatName
[4][16];
43 static char axisName
[2][8];
44 static int buttonPos
[21][2];
47 #endif // __CONTROLLERWIDGET_H__