epicmaori / imame4all

Automatically exported from code.google.com/p/imame4all
0 stars 0 forks source link

Flip DPAD Mapping when rotating screen #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start a vertical game
2. Rotate the device 90 degress counter-clockwise so the game screen also 
rotates (make it so it's aligned vertically with the screen)
3. Now the dpad isn't rotated, when you have the device oriented vertically, 
when you move left the game assumes you move upwards, up is right, right is 
down and down is left.

The expected output is that the dpad is rotated so that the movement is 
consistent with the orientation. In detail, it would be the following mapping:

* rotated 90 degress counter-clockwise
- up -> left
- right -> up
- down -> right
- left -> down

* rotated 180 degress counter-clockwise
- up -> down
- right -> left
- down -> up
- left -> right

* rotated 270 degress counter-clockwise
- up -> right
- right -> down
- down -> left
- left -> up

this is obvious
* rotated 0 degress
- up -> up
- right -> right
- down -> down
- left -> left

I'm using mame4droid 1.5.2 with Android 2.3 (GingerBread)

This should be MADE AN OPTION ON THE MENU so it's not automatic nor compulsory 
to have it enabled.

I hope you understand this situation, because I've a JXD S601 console which has 
a dpad and buttons and when rotating it's practically unplayable if the dpad 
isn't rotated. Xperia play users should be affected also and all devices which 
have dpad and buttons.

Greets!

Original issue reported on code.google.com by ivan.mol...@isercon.cl on 1 Jun 2012 at 12:42

GoogleCodeExporter commented 8 years ago
It should be mentioned that this also happens in Mame4droid reloaded 1.2 with 
Android 2.3 and in a JXD s601 console. I don't know if this happens on xperia 
play devices or devices with a dpad.

Original comment by ivan.mol...@isercon.cl on 1 Jun 2012 at 12:50