catching operating system events

is there any way to catch the input (mouse/keyboard) events of the operating system (in my case win) within my application ?

Hi
Two options, the AWT events, keyboard/mouse listener, or by registering an AWTEventListener with the ToolKit. The other option for gamepads/joysticks etc to to try JInput

HTH

Endolf

hmm, i know the listener. but i have to add them to a frame, window or a container. but to whom do i add my listener if i want to get the events, which occur e.g. on the win-desktop ?

Hi
You shouldn’t really be doing it, but the Toolkit methods allow you to get system wide events under windows, and if they don’t, the JInput definitly does

HTH

Endolf

[quote]the Toolkit methods allow you to get system wide events under windows, and if they don’t,
[/quote]
I think the ToolKit events are only Process wide.

That would make sence to me.
JInput on the other hand captures system wide, you don’t even need a window, let along one thats in focus, this is true on windows and linux, not sure about osX though.

Endolf

Same on OS X