onscreen widget fix
motionHandler fix
This commit is contained in:
@@ -201,6 +201,9 @@ import CoreMotion
|
|||||||
if motion.sensorsRequireManualActivation {
|
if motion.sensorsRequireManualActivation {
|
||||||
motion.sensorsActive = true
|
motion.sensorsActive = true
|
||||||
}
|
}
|
||||||
|
if rollToLeftStick {
|
||||||
|
leftStickMotion = 0
|
||||||
|
}
|
||||||
if motion.sensorsActive {
|
if motion.sensorsActive {
|
||||||
motion.valueChangedHandler = { [weak self] motion in
|
motion.valueChangedHandler = { [weak self] motion in
|
||||||
self?.handleMotionData(gcMotion: motion)
|
self?.handleMotionData(gcMotion: motion)
|
||||||
|
|||||||
@@ -705,6 +705,7 @@ import ObjectiveC.runtime
|
|||||||
self.isMultipleTouchEnabled = self.widgetType == WidgetTypeEnum.button
|
self.isMultipleTouchEnabled = self.widgetType == WidgetTypeEnum.button
|
||||||
|| CommandManager.mousePadWithButtonActions.contains(self.touchPadString)
|
|| CommandManager.mousePadWithButtonActions.contains(self.touchPadString)
|
||||||
|| self.touchPadString == "MAGNIFIER"
|
|| self.touchPadString == "MAGNIFIER"
|
||||||
|
|| self.touchPadString == "DS4TOUCH"
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======================================================================================================
|
// ======================================================================================================
|
||||||
@@ -2270,7 +2271,10 @@ import ObjectiveC.runtime
|
|||||||
case "DS4TOUCH":
|
case "DS4TOUCH":
|
||||||
if quickDoubleTapDetected {
|
if quickDoubleTapDetected {
|
||||||
self.showl3r3Indicator()
|
self.showl3r3Indicator()
|
||||||
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)}
|
if activeTouchesCount < 2 {
|
||||||
|
self.sendComboButtonsDownEvent(comboStrings: self.comboButtonStrings)
|
||||||
|
}
|
||||||
|
}
|
||||||
case "DPAD", "WASDPAD", "ARROWPAD":
|
case "DPAD", "WASDPAD", "ARROWPAD":
|
||||||
if activeTouchesCount == 1 {
|
if activeTouchesCount == 1 {
|
||||||
// showLrudBall(at: touchBeganLocation)
|
// showLrudBall(at: touchBeganLocation)
|
||||||
|
|||||||
Reference in New Issue
Block a user