1 #ifndef __CONTROLLERWIDGET_H__
2 #define __CONTROLLERWIDGET_H__
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);
37 static char keyName1[96][16];
38 static char keyName2[64][16];
39 static char hatName[4][16];
40 static char axisName[2][8];
41 static int buttonPos[21][2];
44 #endif // __CONTROLLERWIDGET_H__