Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid result returned #439

Closed
git-xxing opened this issue Mar 24, 2023 · 1 comment
Closed

Invalid result returned #439

git-xxing opened this issue Mar 24, 2023 · 1 comment

Comments

@git-xxing
Copy link

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
Copy link
Owner

kwhat commented Mar 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants