tomkidd / Quake3-iOS

Quake III: Arena for iOS and tvOS for Apple TV
123 stars 16 forks source link

MFI controller (Razer Kishi) not working and virtual mouse issues #9

Open jm2 opened 2 years ago

jm2 commented 2 years ago

It looks like two issues may have developed since the last time this was worked on:

  1. The Razer Kishi MFI controller is not recognized at all. Not sure if it's specific to this controller or if MFI support in general broke somewhere down the line.
  2. When a game is paused, the mouse pointer for selecting menu items does not map to touch locations on the iPhone XS at all, making menu operating impossible and requiring a force quit and restart.

Other than that I've been pretty happy with the port. I agree that the touch controls could do with two joysticks instead of one, but if the MFI support leverages two joysticks then I don't care quite as much :)

tomkidd commented 2 years ago

I'll check it out on the hardware I have. I've only got a couple of controllers, neither is a Razer Kishi, but I can at least make sure basic MFi support still works.

Here's the deal with the game paused in menu - the way I'm able to get the mouse cursor working with the touch screen is to have a modified version of the .qvm files that is aware of absolute positioning. The problem is, once you're in a game if you're connected to a Pure Server (including, I'm guessing, ones you spin up yourself with bots) it falls back to the qvm that ships with the game since it matches the ones everyone else has. That qvm doesn't have the absolute positioning code.

I can look into making a bot match from the Cocoa Touch menus be non-pure, otherwise it's something you can do within the game's UI itself.

jm2 commented 2 years ago

Good to know, thanks. For what's it's worth I was seeing the pause menu behavior specifically on single player matches created from the main menu, but it's possible those are set up as pure games by default as well since they're just nicely wrapped multiplayer bot matches.

Thanks for checking on the MFi support!

henning77 commented 2 years ago

My MFi controller (XBox Wireless Controller) does not seem to work as well with Quake3-iOS (works in other games). Is there anything else I need to do to get the controller working, do I need to switch input method from touch controls to MFi? I am on iOS 15.6.1.

retrography commented 10 months ago

Any hope for this getting fixed? My XBox controller dosn't work either (tvOS). It works in the launch menu, but not inside the game.

indvd00m commented 4 months ago

Same problem - xbox wireless controller does not working in a game. I tried to add capability "Game Controllers" to target like in this documentation https://developer.apple.com/news/?id=hk2u622s, but this is not changed situation. When I press Back or Start controller buttons I can see this lines in debug console:

Found no UIEvent for backing event of type: 3; contextId: 0xA5F5D2E3
Found no UIEvent for backing event of type: 3; contextId: 0xA5F5D2E3

When I am press any other controller buttons nothing happens.