aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/darwin_embedded
diff options
context:
space:
mode:
authorBrent Murphy <bmurphy@bcmcs.net>2020-03-29 11:59:52 +1000
committerfuzzard <fuzzard@kodi.tv>2020-06-10 11:28:23 +1000
commit063fba37b40183857a894d064e58f2e758dd7640 (patch)
tree7d0f701fdb8a1039f1835252582c7fadd4155076 /cmake/scripts/darwin_embedded
parente9f5649152d9720eea2b91e7d71ad8f26f9b7cd5 (diff)
[peripheralbusdarwinembedded] Micro and Extended gamecontroller support
This supports both Micro and Extended gamecontroller support as per Apples API. Extended Gamecontroller supports 16 buttons, 4 axis - Dpad (4 buttons) - L/R Shoulder (2 buttons) - L/R Trigger (currently buttons but provides axis data) - A/B/X/Y - Menu (>= ios13 required) - Option (>= ios13 required) - L/R Thumbsticks (2 axis each stick) - L/R Thumbstick Buttons (>= ios 13 required) Micro Gamecontroller supports 6 buttons, 0 axis - Dpad (4 buttons) - A/X - Accelerometer/gyro data is possible, but not supported Note: Micro support is entirely untested. The only micro controller im aware of is the tvos Siri remote. TVOS input handling needs a complete overhaul for this to work on that platform currently. Todo: - Multicontroller handling - Convert Triggers to axis instead of buttons - Investigate crash with Steelseries Nimbus Pause button - Cleanup/refine Logging - Investigate Micro Gyro/Accelerometer input
Diffstat (limited to 'cmake/scripts/darwin_embedded')
-rw-r--r--cmake/scripts/darwin_embedded/ArchSetup.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/scripts/darwin_embedded/ArchSetup.cmake b/cmake/scripts/darwin_embedded/ArchSetup.cmake
index cbfe100fa1..7160da996e 100644
--- a/cmake/scripts/darwin_embedded/ArchSetup.cmake
+++ b/cmake/scripts/darwin_embedded/ArchSetup.cmake
@@ -37,7 +37,7 @@ list(APPEND DEPLIBS "-framework CoreFoundation" "-framework CoreVideo"
"-framework Foundation" "-framework UIKit"
"-framework CoreMedia" "-framework AVFoundation"
"-framework VideoToolbox" "-lresolv" "-ObjC"
- "-framework AVKit")
+ "-framework AVKit" "-framework GameController")
set(ENABLE_OPTICAL OFF CACHE BOOL "" FORCE)