AntiMicroX
Public Member Functions | Private Slots | Private Attributes
JoystickStatusWindow Class Reference

The joystick "Properties" window. Shows various raw values to the user. More...

#include <joystickstatuswindow.h>

Inheritance diagram for JoystickStatusWindow:
[legend]
Collaboration diagram for JoystickStatusWindow:
[legend]

Public Member Functions

 JoystickStatusWindow (InputDevice *joystick, QWidget *parent=nullptr)
 
 ~JoystickStatusWindow ()
 
InputDevicegetJoystick () const
 

Private Slots

void restoreButtonStates (int code)
 
void obliterate ()
 
void updateAccelerometerValues (float valueX, float valueY, float valueZ)
 Accelerometer "moved" event handler Updates raw accelerometer values on the screen. More...
 
void updateGyroscopeValues (float valueX, float valueY, float valueZ)
 Gyroscope "moved" event handler Updates raw gyroscope values on the screen. More...
 

Private Attributes

Ui::JoystickStatusWindow * ui
 
InputDevicejoystick
 
QProgressBar * m_accel_axes [3]
 
QProgressBar * m_gyro_axes [3]
 

Detailed Description

The joystick "Properties" window. Shows various raw values to the user.

Constructor & Destructor Documentation

◆ JoystickStatusWindow()

JoystickStatusWindow::JoystickStatusWindow ( InputDevice joystick,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~JoystickStatusWindow()

JoystickStatusWindow::~JoystickStatusWindow ( )

Member Function Documentation

◆ getJoystick()

InputDevice * JoystickStatusWindow::getJoystick ( ) const

◆ obliterate

void JoystickStatusWindow::obliterate ( )
privateslot
Here is the caller graph for this function:

◆ restoreButtonStates

void JoystickStatusWindow::restoreButtonStates ( int  code)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAccelerometerValues

void JoystickStatusWindow::updateAccelerometerValues ( float  valueX,
float  valueY,
float  valueZ 
)
privateslot

Accelerometer "moved" event handler Updates raw accelerometer values on the screen.

Here is the caller graph for this function:

◆ updateGyroscopeValues

void JoystickStatusWindow::updateGyroscopeValues ( float  valueX,
float  valueY,
float  valueZ 
)
privateslot

Gyroscope "moved" event handler Updates raw gyroscope values on the screen.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ joystick

InputDevice* JoystickStatusWindow::joystick
private

◆ m_accel_axes

QProgressBar* JoystickStatusWindow::m_accel_axes[3]
private

◆ m_gyro_axes

QProgressBar* JoystickStatusWindow::m_gyro_axes[3]
private

◆ ui

Ui::JoystickStatusWindow* JoystickStatusWindow::ui
private

The documentation for this class was generated from the following files: