1 | lib 1010545 // JNativeHook |
2 | |
3 | static LS _stickyLibs_1010550 = ll(#1010545); |
4 | |
5 | import org.jnativehook.GlobalScreen; |
6 | import org.jnativehook.keyboard.NativeKeyEvent; |
7 | import org.jnativehook.keyboard.NativeKeyAdapter; |
8 | |
9 | static volatile bool jnativehook_inited; |
10 | |
11 | static void jnativehook_init() ctex { |
12 | if (jnativehook_inited) ret; |
13 | try { |
14 | jnativehook_init2(); |
15 | } catch e { |
16 | print("jnativehook_init fail: " + e.getMessage()); |
17 | if (contains(e.getMessage(), "libxkbcommon")) |
18 | fail("Please try: sudo apt-get install libxkbcommon", e); |
19 | throw rethrow(e); |
20 | } |
21 | jnativehook_inited = true; |
22 | } |
23 | |
24 | svoid jnativehook_init2() ctex { |
25 | java.util.logging.Logger.getLogger(GlobalScreen.class.getPackage().getName()).setLevel(java.util.logging.Level.OFF); |
26 | GlobalScreen.registerNativeHook(); |
27 | } |
Began life as a copy of #1010548
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010550 |
Snippet name: | jnativehook_init |
Eternal ID of this version: | #1010550/12 |
Text MD5: | aa6f2a035279629e46fb8cf28a9a59b0 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-28 20:38:47 |
Source code size: | 814 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 456 / 567 |
Version history: | 11 change(s) |
Referenced in: | [show references] |