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

11
LINES

< > BotCompany Repo | #1015210 // jNativeHook_keyCodes

JavaX fragment (include)

1  
please include function jnativehook_init.
2  
import org.jnativehook.keyboard.NativeKeyEvent;
3  
4  
static cached Map<S, Int> jNativeHook_keyCodes() {
5  
  TreeMap<S, Int> map = new(new AlphanumComparator);
6  
  new Matches m;
7  
  for (S field : fieldNames(NativeKeyEvent.class))
8  
    if (startsWith(field, "VC_", m))
9  
      map.put(m.rest(), toInt(get(NativeKeyEvent, field)));
10  
  ret map;
11  
}

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: 352 / 418
Version history: 3 change(s)
Referenced in: [show references]