Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1015210 // jNativeHook_keyCodes

JavaX fragment (include)

please include function jnativehook_init.
import org.jnativehook.keyboard.NativeKeyEvent;

static cached Map<S, Int> jNativeHook_keyCodes() {
  TreeMap<S, Int> map = new(new AlphanumComparator);
  new Matches m;
  for (S field : fieldNames(NativeKeyEvent.class))
    if (startsWith(field, "VC_", m))
      map.put(m.rest(), toInt(get(NativeKeyEvent, field)));
  ret map;
}

Author comment

Began life as a copy of #1015209

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015210
Snippet name: jNativeHook_keyCodes
Eternal ID of this version: #1015210/4
Text MD5: e35dee9eced68aa3ebbca0dc20aa3b8b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-21 10:11:19
Source code size: 382 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 320
Version history: 3 change(s)
Referenced in: [show references]