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

11
LINES

< > BotCompany Repo | #1015114 // Test onGlobalMousePress + onGlobalMouseRelease (OK!)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 408K of libraries. Click here for Pure Java version (1014L/7K).

!7

p {
  onGlobalMousePress(voidfunc(NativeMouseEvent e) {
    print("Mouse press at " + e.getX() + "/" + e.getY() + ", button " + e.getButton());
  });
  
  onGlobalMouseRelease(voidfunc(NativeMouseEvent e) {
    print("Mouse release at " + e.getX() + "/" + e.getY() + ", button " + e.getButton());
  });
}

Author comment

Began life as a copy of #1010549

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: #1015114
Snippet name: Test onGlobalMousePress + onGlobalMouseRelease (OK!)
Eternal ID of this version: #1015114/4
Text MD5: 983f7afd16f06e7a528db22eeadc0aa7
Transpilation MD5: 2117315312f86af06edda639db31df9e
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 14:34:26
Source code size: 318 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 1039
Version history: 3 change(s)
Referenced in: [show references]