DPAD implemention

This commit is contained in:
TrueZhuangjia
2025-01-26 10:57:10 +08:00
parent e2bd8b1512
commit 4e85d3d079
3 changed files with 24 additions and 31 deletions
+4 -5
View File
@@ -169,17 +169,16 @@ static float L3_Y;
[_controllerSupport updateFinished:_controller];
}
- (void) pressDownL3{
[_controllerSupport setButtonFlag:_controller flags:LS_CLK_FLAG];
- (void) pressDownControllerButton: (int)flag{
[_controllerSupport setButtonFlag:_controller flags:flag];
[_controllerSupport updateFinished:_controller];
}
- (void) pressDownR3{
[_controllerSupport setButtonFlag:_controller flags:RS_CLK_FLAG];
- (void) releaseControllerButton: (int)flag{
[_controllerSupport clearButtonFlag:_controller flags:flag];
[_controllerSupport updateFinished:_controller];
}
// sending self as an instance to OnScreenButtonView
- (void)sendInstance{
NSLog(@"OnScreenControls is sending its instance...");