2 messages in net.java.dev.jna.usersRe: [jna-users] KeyboardUtils on Mac
FromSent OnAttachments
Timothy WallJul 23, 2007 7:38 am 
Christian HennigfeldJul 24, 2007 2:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] KeyboardUtils on MacActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 23, 2007 7:38:39 am
List:net.java.dev.jna.users

Try this link http://www.ghosttiger.com/?p=136

You shouldn't need to write any native code, just the mappings and the java code that uses them.

T.

On Jul 23, 2007, at 3:34 AM, Christian Hennigfeld wrote:

Hi, I'd like to use the KeyboardUtils class to find out if a certain key is pressed while a window is moved (ComponentEvent doesn't provide that info, unfortunately). Now, there seems to be implementations for Win32 and X11, which do exactly what I want, but it's not done yet on Mac. I noticed that the other two make use of the User32 and X11 classes and their libraries, but apparently there's no such class for Mac.

What I'd like to know is, is there a library somewhere that's ready to be used, so I could just implement the key mapping in Java without writing any native code myself? I'd like to complete the missing part in that class, but I don't have the in- depth knowledge of JNA to do it from scratch.

Chris

-- =============================================================== imbus AG, Kleinseebacher Str. 9, 91096 Möhrendorf, DEUTSCHLAND Tel. +49 9131 7518-0, Fax +49 9131 7518-50 in@imbus.de http://www.imbus.de

imbus AG, Unter der Linde 16, 80939 München, DEUTSCHLAND Tel. +49 89 3219909-0, Fax +49 89 3219909-50 in@imbus.de http://www.imbus.de

Vorsitzender des Aufsichtsrates: Hendrik Rässler Vorstand: Tilo Linz, Bernd Nossem, Thomas Roßner, Jörg Schulten Sitz der Gesellschaft: Möhrendorf, München Registergericht: Fürth/Bay, HRB 8365

--------------------------------------------------------------- imbus Rhein-Main GmbH, Zanggasse 6, 65719 Hofheim, DEUTSCHLAND Tel. +49 6192 92192-0, Fax +49 6192 92192-50 in@imbus.de http://www.imbus.de

Geschäftsführer: Frank Schmeißner, Jörg Schulten Sitz der Gesellschaft: Hofheim Registergericht: Frankfurt am Main, HRB 52155 ===============================================================