WilliamLCobb / iNDS

Legacy Repo for iNDS
http://willcobb.me/iNDS.html
236 stars 60 forks source link

Mfi controller input is laggy #207

Open narwhalzz opened 7 years ago

narwhalzz commented 7 years ago

I've been playing using a steel series stratus controller and their is a noticeable amount of input delay. This is with 60+ fps on an iPad Pro running iOS 10.1 unjailbroken using most recent buildstore build.

The usual connected lights don't display properly either.

It works properly in other respects and is fine when playing slower turn based games but is almost unplayable in things with motion or reaction based game play. Have tried out with bowsers inside story, MARIO 64 ds, Pokémon diamond, and mystery dungeon sky.

This issue will probably be resolved by optimizing the controller inputs when using a Bluetooth controller. Wish I new more about coding but i'm more of a beginner. Still would love to help out in anyway I can with this great project.

narwhalzz commented 7 years ago

Oh also, if I modify this code and built it myself, could I change the input mapping? [NSValue valueWithNonretainedObject:_controller.gamepad.dpad.right] : @(BUTTON_RIGHT), [NSValue valueWithNonretainedObject:_controller.gamepad.dpad.left] : @(BUTTON_LEFT), [NSValue valueWithNonretainedObject:_controller.gamepad.dpad.down] : @(BUTTON_DOWN), [NSValue valueWithNonretainedObject:_controller.gamepad.dpad.up] : @(BUTTON_UP), // [NSValue valueWithNonretainedObject:_controller.gamepad.NONE] : @(BUTTON_SELECT), // [NSValue valueWithNonretainedObject:_controller.gamepad.NONE] : @(BUTTON_START), [NSValue valueWithNonretainedObject:_controller.gamepad.buttonB] : @(BUTTON_B), [NSValue valueWithNonretainedObject:_controller.gamepad.buttonA] : @(BUTTON_A), [NSValue valueWithNonretainedObject:_controller.gamepad.buttonY] : @(BUTTON_Y), [NSValue valueWithNonretainedObject:_controller.gamepad.buttonX] : @(BUTTON_X), [NSValue valueWithNonretainedObject:_controller.gamepad.leftShoulder] : @(BUTTON_L), [NSValue valueWithNonretainedObject:_controller.gamepad.rightShoulder] : @(BUTTON_R),