irungentoo / Xiaomi_gamepad

It's a nice gamepad.
318 stars 71 forks source link

The dead zone is big. #16

Open cukingpro opened 8 years ago

cukingpro commented 8 years ago

Hi, The gamepad works very well. But the deadzone of the sticks are too big for me. Can I some how edit that ? Thanks.

irungentoo commented 8 years ago

There's a deadzone on yours?

You could try recalibrating the controller by sending Calibration packets to it (see the protocol readme in the main repo and accelerometer_print for how to send packets to the controller).

cukingpro commented 8 years ago

I ran the hidraw file but didnt know how to send the packets to the controller ? Can you show me ?

I moved the sticks and felt like there's no deadzone but when I'm in games, the deadzone is big.

irungentoo commented 8 years ago

Line 42 is the packet and line 43 is the function used to send it, right now it's the packet to enable the accelerometer. The 3 in the HIDIOCSFEATURE(3) is the length of the packet.

I moved the sticks and felt like there's no deadzone

If it updates the values when you move the sticks a little then the issue is probably your operating system and not the controller.