1 | static void robot_mouseButtonPressOrRelease_scaled(bool down, int button, double x, double y) { |
2 | int dummyWidth = 100000; |
3 | robot_mouseButtonPressOrRelease_scaled(down, button, iround(x*dummyWidth), iround(y*dummyWidth), dummyWidth); |
4 | } |
5 | |
6 | static void robot_mouseButtonPressOrRelease_scaled(bool down, int button, int x, int y, int scaledWidth) ctex { |
7 | final new Robot robot; |
8 | dm_moveMouseImmediate_direct_scaled(x, y, scaledWidth); |
9 | if (down) |
10 | robot.mousePress(button); |
11 | else |
12 | robot.mouseRelease(button); |
13 | } |
Began life as a copy of #1019908
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, odhhsrjjbcgr, pyentgdyhuwx, pzhvpgtvlbxg, rjpzpeejafvs, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019914 |
Snippet name: | robot_mouseButtonPressOrRelease_scaled |
Eternal ID of this version: | #1019914/3 |
Text MD5: | 8094b16f902efc6ced48434054b72f85 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-30 22:35:14 |
Source code size: | 527 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 276 / 329 |
Version history: | 2 change(s) |
Referenced in: | [show references] |