Skip to content

Commit 2ab22a8

Browse files
committed
feat(QML): add controller settings
1 parent 50c2790 commit 2ab22a8

15 files changed

Lines changed: 1996 additions & 307 deletions

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5094,6 +5094,9 @@ if(HID)
50945094
)
50955095
endif()
50965096
target_compile_definitions(mixxx-lib PUBLIC __HID__)
5097+
if(QML)
5098+
target_compile_definitions(mixxx-qml-lib PUBLIC __HID__)
5099+
endif()
50975100
endif()
50985101

50995102
# USB Bulk controller support
@@ -5121,6 +5124,9 @@ if(BULK)
51215124
endif()
51225125
target_compile_definitions(mixxx-lib PUBLIC __BULK__)
51235126
target_link_libraries(mixxx-lib PRIVATE LibUSB::LibUSB)
5127+
if(QML)
5128+
target_compile_definitions(mixxx-qml-lib PUBLIC __BULK__)
5129+
endif()
51245130
endif()
51255131

51265132
# Vinyl Control

res/controllers/Dummy Device Screen.hid.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
<value color="#FFFFFF" label="White">white</value>
6363
</option>
6464
</row>
65+
<option
66+
variable="intValue"
67+
type="integer"
68+
min="20"
69+
max="500"
70+
step="2"
71+
default="50"
72+
label="Int value"/>
6573
</group>
6674
</settings>
6775
<controller id="DummyDevice">

0 commit comments

Comments
 (0)