sanyaade-g2g-repos / kwaak3

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

Bluetooth mouse is rotated #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install game
2. Connect bluetooth mouse using hidd --connect
3. Run game

What is the expected output? What do you see instead?
Instead of normal mapping on the mouse, it's:
(Mouse = Game)
Up = Left
Right = Up
Down = Right
Left = Down

What version of the product are you using? On what operating system?
kwaak3_test.apk from Feb 25 on CyanogenMod 4.2.14.1 (Vodafone Magic 32B)

Please provide any additional information below.
Affects all android applications in landscape mode, the easy workaround 
would be to rotate either the input or the screen.
Rotating the input would probably be easiest.

Original issue reported on code.google.com by Djhg2...@gmail.com on 26 Feb 2010 at 3:32

GoogleCodeExporter commented 9 years ago
Apparently the coordinates sent by the mouse driver don't take screen 
orientation
into account.

Original comment by thunderb...@gmail.com on 27 Feb 2010 at 9:46

GoogleCodeExporter commented 9 years ago
So it seems, yes.

I think the problem is within the design of Android itself as it rotates the 
input 
AFTER the driver instead of inside of the driver.

In order to fix this the right way we would probably have to dig deep down into 
the 
Android source, but to require a specific hacked version of Android just for 
rotating an external mouse seems a litle extreme :)

Still, discussing this with one of the Android hackers might prove useful?

Original comment by Djhg2...@gmail.com on 27 Feb 2010 at 1:38

GoogleCodeExporter commented 9 years ago
Since mouse sends the same events as trackball I think the easiest workaround 
will be to include an option at startup to remap trackball directions (so when 
game recieves trackball_left keycode it acts like it was up, not left, etc).

Original comment by ordco...@gmail.com on 23 Jun 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Anyone knows how to install a bluetooth mouse in kwaak3 for Galaxy S ?

Android 2.1 rooted... A simple instruction would be ok :)

Original comment by lukasz.w...@gmail.com on 18 Oct 2010 at 10:47