- onAChanged: console.log("A changed to: " + val)
- onBChanged: console.log("B changed to: " + val)
- onCChanged: console.log("C changed to: " + val)
- onDChanged: console.log("D changed to: " + val)
+ onAChanged: {
+ console.log("A changed to: " + val)
+ if(val){
+ xtstAdapter.sendKeyPress("a");
+ }
+ }
+ onBChanged: {
+ console.log("B changed to: " + val)
+ if(val){
+ xtstAdapter.sendKeyPress("b");
+ }
+ }
+ onCChanged: {
+ console.log("C changed to: " + val)
+ if(val){
+ xtstAdapter.sendKeyPress("c");
+ }
+ }
+ onDChanged: {
+ console.log("D changed to: " + val)
+ if(val){
+ xtstAdapter.sendKeyPress("d");
+ }
+ }
+ }
+
+ XtstAdapter{
+ id: xtstAdapter