Cursor location ?

Is there any way to get the cursor location in Jinput ?

the location of the mouse pointer? No and it is not planned (IMHO).
But you can use java.awt.MouseInfo.getPointerInfo().getLocation() which is available since JDK 1.5

It was like I guessed then. Thanks for the awt tip, I’ll look into it.

// Tomas :slight_smile:

To put it simply. This was my philosophy as the original author of JInput:

The mouse is an input device.
The cursor is an output device.

They are by their nature independant entities. A mouse is useful without a cursor (eg Quake). A cursor is useufl without a mouse (eg Java Robot).

Its only crappy operating systems that force you to deal with them as a single higher-level construct

JInput is an input library it neither knwos nor cares about output beyond that in the controller itself (rumble and force feedback) nor should it.

There is even an argument that rumble and force feedback should be sepreate but in practice to date they have only showed up as embedded in controllers to my knowledge.

Now JInput has passed from my hands to the community, for which I am very greatful, so if the community at large decides for a change in philosophy thats up to you guys. But this was my original thinking for whatever its worth.