MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / JoyButtonStatusBox

Method JoyButtonStatusBox

src/joybuttonstatusbox.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <QWidget>
26
27JoyButtonStatusBox::JoyButtonStatusBox(JoyButton *button, QWidget *parent)
28 : QPushButton(parent)
29{
30 this->button = button;
31 isflashing = false;
32
33 setText(QString::number(button->getRealJoyNumber()));
34
35 connect(button, &JoyButton::clicked, this, &JoyButtonStatusBox::flash);
36 connect(button, &JoyButton::released, this, &JoyButtonStatusBox::unflash);
37}
38
39JoyButton *JoyButtonStatusBox::getJoyButton() const { return button; }
40

Callers

nothing calls this directly

Calls 1

getRealJoyNumberMethod · 0.45

Tested by

no test coverage detected