cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Touch Control remapping #160

Closed JaredSartin closed 7 years ago

JaredSartin commented 9 years ago

I cannot get my touch controls to remap (iOS8 - Safari and CocoonJS. Here is the code that kicks off my game:

var Q = window.Q = Quintus()
        .include("Sprites, Scenes, Input, 2D, Anim, Touch, UI, TMX")
        .setup({ maximize: true })
        .controls().touch();

Q.input.touchControls({
  controls: [
          ["left", "<"],
          ["right", ">"],
          [],
          [],
          ["fire", "A",],
          ["action", "B"]
  ]
});

The controls still show up as lower case 'b', and 'a'. I need them swapped (more or less).