weigert / joycon-

Joycon API / Driver for C++ on Unix. Example program with Joycon Mouse
3 stars 0 forks source link

Gyroscope and accelerometer data? #1

Open leoauri opened 3 weeks ago

leoauri commented 3 weeks ago

Hi there, have you implemented movement data coming from the joycons? I don't see anything in the code on a quick look. Thx

weigert commented 3 weeks ago

Hi there,

This is not fully tested but you can try enabling the IMU using a command once the joycon is connected and then request to read the data.

Read: https://github.com/weigert/joycon-/blob/master/joycon-core/include/joycon.cpp#L233 https://github.com/weigert/joycon-/blob/master/joycon-core/include/joycon.cpp#L255