27 #ifndef JOYSTICKCONTROL_H
28 #define JOYSTICKCONTROL_H
31 #include <QGraphicsView>
32 #include <QtSvg/QSvgRenderer>
33 #include <QtSvg/QGraphicsSvgItem>
34 #include "manualcontrolcommand.h"
62 QSvgRenderer *m_renderer;
63 QGraphicsSvgItem *m_background;
64 QGraphicsSvgItem *m_joystickArea;
65 QGraphicsSvgItem *m_joystickEnd;
68 #endif // JOYSTICKCONTROL_H
void mouseMoveEvent(QMouseEvent *event)
Redirect mouse move events to control position.
void positionClicked(double x, double y)
JoystickControl(QWidget *parent=nullptr)
Constructor for JoystickControl widget. Sets up the image of a joystick.
void paintEvent(QPaintEvent *event)
void mousePressEvent(QMouseEvent *event)
Redirect mouse move clicks to control position.
void resizeEvent(QResizeEvent *event)
void changePosition(double x, double y)
Update the displayed position based on an MCC update.