kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.75k stars 348 forks source link

Invalid result returned #439

Closed git-xxing closed 1 year ago

git-xxing commented 1 year ago

Hi there,

I encountered an error while using jnativehook, which says "Error: Java_com_github_kwhat_jnativehook_GlobalScreen_getPointerAccelerationThreshold [314]: Invalid result returned from hook_get_pointer_acceleration_threshold()!". I tried searching for a solution but couldn't find any relevant information. My JavaFX version is 17.0.2 and JDK version is Corretto-17.0.6.10.1. My system version is Ventura 13.2.1 (22D68) and my computer chip is Apple M1. Can someone please help me with this issue?

Thank you.

kwhat commented 1 year ago

Error: Java_com_github_kwhat_jnativehook_GlobalScreen_getPointerAccelerationThreshold [314]: Invalid result returned from hook_get_pointer_acceleration_threshold()!

This just means that the library could not find a suitable source for mouse pointer acceleration threshold. IIRC OSX does not provide a real way to get or change this value.

Can someone please help me with this issue?

This should be fixed in code already. Solution: Use 2.2.2