7import QGroundControl.Controls
8import QGroundControl.VehicleSetup
9import QGroundControl.FactControls
12 spacing: ScreenTools.defaultFontPixelWidth
14 property var _joystick: joystickManager.activeJoystick
16 QGCPalette { id: qgcPal }
21 onRawButtonPressedChanged: (index, pressed) => {
22 if (buttonRepeater.itemAt(index)) {
23 buttonRepeater.itemAt(index).pressed = pressed
30 model: _joystick.buttonCount
33 implicitWidth: ScreenTools.defaultFontPixelHeight * 1.5
36 border.color: qgcPal.text
37 color: pressed ? qgcPal.buttonHighlight : qgcPal.button
43 color: pressed ? qgcPal.buttonHighlightText : qgcPal.buttonText
44 horizontalAlignment: Text.AlignHCenter
45 verticalAlignment: Text.AlignVCenter