iOS Question Game Controller support ??

ilan

Expert
Licensed User
Longtime User
hi

2 days ago i received my new mac mini 2023 with M2 chip and i found out that all my ios apps are available in the appstore. so if you have a mac with apple chip you can run ios apps on your mac. this opens new opportunities. so i opened some games of mine and it was hard to play them because it is designed for touch screen so you have to press with the mouse and this is not very convenient. so i searched for game controller support and i found this:


can we implement game controller support with b4i?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can add this plist declaration with:
B4X:
#PlistExtra:<key>GCSupportsControllerUserInteraction</key>
#PlistExtra:     <true/>
#PlistExtra:      <key>GCSupportedGameControllers</key>
#PlistExtra:     <array>
#PlistExtra:         <dict>
#PlistExtra:             <key>ProfileName</key>
#PlistExtra:             <string>ExtendedGamepad</string> 
#PlistExtra:          </dict> 
#PlistExtra:     </array>
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
You can add this plist declaration with:
B4X:
#PlistExtra:<key>GCSupportsControllerUserInteraction</key>
#PlistExtra:     <true/>
#PlistExtra:      <key>GCSupportedGameControllers</key>
#PlistExtra:     <array>
#PlistExtra:         <dict>
#PlistExtra:             <key>ProfileName</key>
#PlistExtra:             <string>ExtendedGamepad</string>
#PlistExtra:          </dict>
#PlistExtra:     </array>
Will try that, thanx 🙏🏻🙏🏻
 
Upvote 0
Top