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)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 0.84;
OTHER_CFLAGS = ( OTHER_CFLAGS = (
"-D_NO_DISASSEMBLER", "-D_NO_DISASSEMBLER",
"-D_NO_INTERRUPT_CHECK_PER_STEP", "-D_NO_INTERRUPT_CHECK_PER_STEP",
@ -1600,6 +1601,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
LLVM_LTO = YES_THIN; LLVM_LTO = YES_THIN;
MARKETING_VERSION = 0.84;
OTHER_CFLAGS = ( OTHER_CFLAGS = (
"-D_NO_DISASSEMBLER", "-D_NO_DISASSEMBLER",
"-D_NO_INTERRUPT_CHECK_PER_STEP", "-D_NO_INTERRUPT_CHECK_PER_STEP",

View File

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

View File

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