Disable Keyboard 2 Joystick button polling -- that should work through normal event handler

This commit is contained in:
tudnai 2020-07-12 17:54:48 -07:00
parent 99656013ee
commit 6e69b2bf5d
3 changed files with 10 additions and 8 deletions

View File

@ -1563,6 +1563,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.84;
OTHER_CFLAGS = (
"-D_NO_DISASSEMBLER",
"-D_NO_INTERRUPT_CHECK_PER_STEP",
@ -1600,6 +1601,7 @@
"@executable_path/../Frameworks",
);
LLVM_LTO = YES_THIN;
MARKETING_VERSION = 0.84;
OTHER_CFLAGS = (
"-D_NO_DISASSEMBLER",
"-D_NO_INTERRUPT_CHECK_PER_STEP",

View File

@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>

View File

@ -853,13 +853,13 @@ class ViewController: NSViewController {
// Mouse 2 JoyStick (Game Controller / Paddle)
mouseLocation = view.window!.mouseLocationOutsideOfEventStream
if ( Mouse2Joystick || Keyboard2Joystick ) {
if let flags = NSApp.currentEvent?.modifierFlags {
if flags.contains(.command){
// somethings
}
}
}
// if ( Mouse2Joystick || Keyboard2Joystick ) {
// if let flags = NSApp.currentEvent?.modifierFlags {
// if flags.contains(.command){
// // somethings
// }
// }
// }
if ( Mouse2Joystick ) {
pdl_prevarr[0] = pdl_valarr[0]