unlimitedbacon / TTGO-DOOM

A port of DOOM to the LilyGO T-Watch
34 stars 10 forks source link

TTGO T-watch V3 tilt directions mixed up #5

Open bdash9 opened 1 year ago

bdash9 commented 1 year ago

Hi, I know this code came out a while ago but I just picked up a LilGo T-watch 2020 v3 and loaded your TTGO_DOOM code and it runs well! Thanks! One issue is that tilting the watch does the following:

Tilt Left goes forward Tilt Right goes backwards Tilt towards user (forwards) goes Right Tilt away goes Left

I have been looking through the code and can't find where i could change this. Any chance you could post where?

Thanks, Ben

MemerAus commented 2 weeks ago

you can swap the x and y in the bottom of "togo_c.cpp" to make it playable.

} extern "C" bool ttgo_get_accel(int16_t x, int16_t y, int16_t z) { Accel acc; bool ret = ttgo->bma->getAccel(acc); x = acc.y; y = acc.x; z = acc.z; return ret; }