Updated ControllerSkin logic

Rewrote deltaskin info.json format, handles adaptability much better now
This commit is contained in:
Riley Testut 2015-12-20 19:40:40 -06:00
parent 68edb36208
commit d60855724d
3 changed files with 3 additions and 12 deletions

@ -1 +1 @@
Subproject commit ef420717399088af4b1f0e529a9ed45f7880186a
Subproject commit 93e2994ba1c479aeafd453cae056f4254e4dfe24

@ -1 +1 @@
Subproject commit a75e17b34ccb02cabf737a933000ef7da8f041f9
Subproject commit 3b2cc5ce3d62c3a1cde3dac20b088504b4fa2380

View File

@ -74,6 +74,7 @@ class EmulationViewController: UIViewController
let controllerSkin = ControllerSkin.defaultControllerSkinForGameUTI(self.game.typeIdentifier)
self.controllerView.containerView = self.view
self.controllerView.controllerSkin = controllerSkin
self.controllerView.addReceiver(self)
self.emulatorCore.setGameController(self.controllerView, atIndex: 0)
@ -169,16 +170,6 @@ extension EmulationViewController: GameControllerReceiverType
UIDevice.currentDevice().vibrate()
}
if let input = input as? ControllerInput
{
switch input
{
case .Menu: self.controllerViewHeightConstraint.constant = 0
}
return
}
guard let input = input as? ControllerInput else { return }
print("Activated \(input)")