Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[WIP] Android: Native motion controls #8439
Accelerometer controls seem to work, but I haven't done a lot of testing yet. Left to do:
FYI, Sideways/Upright Wii Remote should be already handled. The "IMU" data is transformed appropriately in WiimoteEmu.cpp. You should just have to make sure the Accel and Gyro data is oriented with the screen.
With the current way the IMU data is handled, users will need their phone still and level to use the "pointer". This might be annoying. We might need an option to not use IMU data for producing the transform for IR camera simulation.
Yes. What I meant but probably wasn't super clear about was that I need to make it possible to change those settings on Android. They currently aren't accessible in the GUI.
Yeah, a setting might be a good idea, so that you can control the IR using the touch screen without motion controls affecting anything.
Not that this has much relation to the rest of the PR, but it's an easy fix that we might as well throw in while we're already overwriting everyone's WiimoteNew.ini.
When using motion controls, it's useful to be able to lock the screen to a certain orientation so that Android won't interpret game motions as an intent to change the screen orientation. To this end, I've changed the existing orientation lock setting in the following ways: - A portrait lock mode has been added in addition to the existing landscape lock mode and unlocked mode. - The landscape lock mode now locks to regular landscape rather than letting you change between the two possible landscape orientations. - The setting is now accessed during emulation rather than outside.