-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QML-based components API for controllers
- Loading branch information
1 parent
50b10e5
commit d051ebb
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<MixxxControllerPreset mixxxVersion="2.2.3" schemaVersion="1"> | ||
<info> | ||
<name>Denon DN-S3700 (QML)</name> | ||
<author>christophehenry</author> | ||
<description>Controller preset for Denon DN-S3700 turntable</description> | ||
</info> | ||
<controller id="DN-S3700"> | ||
<scriptfiles> | ||
<file filename="Denon-DN-S3700.qml" functionprefix=""/> | ||
</scriptfiles> | ||
<controls /> | ||
<outputs/> | ||
</controller> | ||
</MixxxControllerPreset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import QtQuick | ||
|
||
QtObject { | ||
id: controller | ||
property string controllerId: "" | ||
property bool debugMode: false | ||
|
||
function init(controllerId, debugMode) { | ||
controller.controllerId = controllerId | ||
controller.debugMode = debugMode | ||
console.log(controllerId, debugMode) | ||
} | ||
|
||
function shutdown() { | ||
console.log(`Shutting down ${controller.controllerId} with debug mode ${controller.controllerId}`) | ||
} | ||
} |