santigimeno/node-uinput

AbsArray uses UInt32 but should be Int32

neuralisator opened this issue · 0 comments

Hello, thank you for this library :) I am using it to emulate virtual gamepads on linux. I think i may have found a little bug in the implementation of setting the axes absMin and absMax values. In index.js line 38 the function writeUInt32LE is used to write the values to the buffer, but axes can have negative values which you can't set there. So I changed it to use writeInt32LE and it works like a charm.