You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
1.1 KiB

import QtQuick 2.0
import de.skycoder42.QtMvvm.Core 1.0
import de.skycoder42.QtMvvm.Quick 1.0
import com.example.consoleemulator 1.0
import "qrc:/qtmvvm/views"
import "qrc:/const"
import "qrc:/emulator/components"
JoystickButton {
property var nameCenter
property var nameLeft
property var nameRight
property var nameTop
property var nameBottom
MvvmBinding {
viewModel: mainView.viewModel
viewProperty: "centerButDown"
viewModelProperty: nameCenter
type: MvvmBinding.OneWayToViewModel
}
MvvmBinding {
viewModel: mainView.viewModel
viewProperty: "leftButDown"
viewModelProperty: nameLeft
type: MvvmBinding.OneWayToViewModel
}
MvvmBinding {
viewModel: mainView.viewModel
viewProperty: "rightButDown"
viewModelProperty: nameRight
type: MvvmBinding.OneWayToViewModel
}
MvvmBinding {
viewModel: mainView.viewModel
viewProperty: "topButDown"
viewModelProperty: nameTop
type: MvvmBinding.OneWayToViewModel
}
MvvmBinding {
viewModel: mainView.viewModel
viewProperty: "bottomButDown"
viewModelProperty: nameBottom
type: MvvmBinding.OneWayToViewModel
}
}