0 Members and 1 Guest are viewing this topic.
The touchpad code for nKaruga is in Player.cpp IIRC. Also, the touchpad needs "initialization", which is done at the start of main.Basically, you "initialize" the touchpad by reading HW constants from it (you'll need them). You only do that once, since they are constants. When that's done, read the touchpad at any time with touchpad_scan.
QuoteThe touchpad code for nKaruga is in Player.cpp IIRC. Also, the touchpad needs "initialization", which is done at the start of main.Basically, you "initialize" the touchpad by reading HW constants from it (you'll need them). You only do that once, since they are constants. When that's done, read the touchpad at any time with touchpad_scan.The touchpad doesn't need initialization and the constants are actually fixed and the same everywhere, so you can completely skip that. (Anyway, only the relative coordinates are interesting, as touchpads are generally not used to get absolute coordinates, the way TI uses the touchpad to replace arrow keys is really annoying)