In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Talk:WiiColEm

From WiiBrew
Jump to navigation Jump to search

Question about Tilt

Hi, I've been trying to implement tilt turning for my game but haven't gotten it to work right yet. I was looking over your source to see how you got it to work, but couldn't find the function for it. I was wondering how you did it. I've tried using both the orient_t and gforce_t structs in wiiuse, but neither of those get it quite right. Could you point me in the right direction? Thanks. RazorChrist/TronCycles 01:39, 29 January 2010 (UTC)

Sure, check out Colem/Wii/WiiColem.c in the "Mouse" method. You should see a section that occurs when the control mode is set to "CONTROLS_MODE_DRIVING_TILT". It is using "pitch" obtained via the "orient_t" structure. --Raz0red 02:14, 29 January 2010 (UTC)