mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-08 13:14:49 +12:00
Qt: Add controller gyroscope
This commit is contained in:
parent
d208c24c0c
commit
520e00c553
3 changed files with 30 additions and 1 deletions
|
@ -289,7 +289,7 @@ void FrontendSDL::run() {
|
|||
|
||||
case SDL_CONTROLLERSENSORUPDATE: {
|
||||
if (event.csensor.sensor == SDL_SENSOR_GYRO) {
|
||||
glm::vec3 rotation = Gyro::SDL::convertRotation({
|
||||
auto rotation = Gyro::SDL::convertRotation({
|
||||
event.csensor.data[0],
|
||||
event.csensor.data[1],
|
||||
event.csensor.data[2],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue