mouse data struct is defined as a uint but in reality it should be an int. The documentation even says for things like mouse wheel it needs to be a negative number. In order to get around this you have to do uint.MaxValue - constant such that when it gets passed to the underlying function it overflows and becomes a negative int.
mouse data struct is defined as a uint but in reality it should be an int. The documentation even says for things like mouse wheel it needs to be a negative number. In order to get around this you have to do uint.MaxValue - constant such that when it gets passed to the underlying function it overflows and becomes a negative int.