stanbsky / How-Hard-Can-It-Be-Redux

DeltaDucks
http://stanbsky.com/How-Hard-Can-It-Be-Redux/
1 stars 0 forks source link

Lock mouse to target #3

Closed Kroojel closed 2 years ago

Kroojel commented 2 years ago

Hide mouse cursor and lock to crosshair

Kroojel commented 2 years ago

Planning to use java.awt.Robot to control mouse movements, just need to wait for the refactoring code to reduce problems merging

Kroojel commented 2 years ago

Realised Gdx.input.setCursorPosition was included in libGDX, used this to lock the cursor to a circle around the centre of the application. This may need to be scaled relative to the crosshair postion.

Kroojel commented 2 years ago

mouse is now invisible when following the crosshair