other uses for JInput besides games

though maybe not the intended use for JInput(?), it does take input even when it’s not the ‘active’ window or app. for better or worse, you could use JInput to make something like a java key logger, or a helper app to let you know your WPM and stuff while you are typing in MS word for example. anyone know of any other official sun java classes that have this same capability?

hmm if they ever let us have undecorated windows with transparent backgrounds, we could even make something like java screen pets. scary thought, isn’t it.

if you want undecorated transparent windows have a look at the Win32 SWT implementation.

JInput on Linux is one really nice thing: It is the only input library I know that supports separate keyboards and mice!! A feature Windows and X11 users can only dream of …

I hope that one time I can use the 3 buttons on my scanner in a Java game … :smiley:

OfficeWorker2005 - the latest game from Japan:

Now you too can pretend to be a corporate slave, spending all day at the photocopier just pressing buttons!

Use your own scanner (not included) and get points for finding ever more interesting images!

New! - the game emails scans it finds particularly interesting to all the names in your Outlook addressbook!

do your scanner buttons show up in JInput? gee for a gaming API, it seems to be really versatile.

interactive help: This is the ‘copy’ button. Try pressing it now. No, not that one, that was the Email button. Press this one… no, not the fax button, the copy… the COPY BUTTON… You appear to be blind. you can order a FREE braille kit for your scanner online at…

[quote]I hope that one time I can use the 3 buttons on my scanner in a Java game … :smiley:
[/quote]
If you can get the scanner driver maintainers to get the driver to use the event interface in linux and create an event device file in /dev/input then it will be picked up by jinput, it’s a driver thing :slight_smile:

HTH

Endolf

Too bad, I think I am not skilled enough for kernel hacking. Can someone estimate the complexity of writing an event interface myself?