I've managed to determine the point ReadFile() in IORead() of IOWin.cpp collects the Calibration data from MotionPlus hardware. How would you go about determining how exactly the game uses them? I'm interested in finding out if and how those few bytes are used for the determination of offsets or/and scaling.
Best technique to follow that data in game code?
|
12-07-2017, 11:01 PM
I figured the best way is old fashioned looking into assembler code. Is that right or has anyone developed any high level tools for Dolphin to aid for situations like that?
12-08-2017, 08:53 AM
Using the dolphin debugger sometimes helps (start dolphin with "-d" command arg).
Reading other people's code can sometimes get you a headstart over starting from scratch. I have attached some old emulation motion plus code from JPeterson which might help (12-08-2017, 08:53 AM)skid Wrote: Using the dolphin debugger sometimes helps (start dolphin with "-d" command arg). It has an interesting part here Code: +/* Default calibration for the motion plus, 0xA60020 */ That array doesn't seem to be re-used in that code. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)