Definition at line 17 of file Mouse.java.
◆ getHScrollEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getHScrollEvent |
( |
Context |
context, |
|
|
boolean |
right |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file Mouse.java.
73 {
74 int flags = PTRFLAGS_HWHEEL;
75
76 if (ApplicationSettingsActivity.getInvertScrolling(context))
77 right = !right;
78
79 if (right)
80 flags |= 0x0078;
81 else
82 flags |= (PTRFLAGS_WHEEL_NEGATIVE | 0x0088);
83 return flags;
84 }
◆ getLeftButtonEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getLeftButtonEvent |
( |
Context |
context, |
|
|
boolean |
down |
|
) |
| |
|
inlinestatic |
Definition at line 31 of file Mouse.java.
32 {
33 if (ApplicationSettingsActivity.getSwapMouseButtons(context))
34 return (PTRFLAGS_RBUTTON | (down ? PTRFLAGS_DOWN : 0));
35 else
36 return (PTRFLAGS_LBUTTON | (down ? PTRFLAGS_DOWN : 0));
37 }
◆ getMiddleButtonEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getMiddleButtonEvent |
( |
boolean |
down | ) |
|
|
inlinestatic |
Definition at line 47 of file Mouse.java.
48 {
49 return (PTRFLAGS_MBUTTON | (down ? PTRFLAGS_DOWN : 0));
50 }
◆ getMoveEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getMoveEvent |
( |
| ) |
|
|
inlinestatic |
Definition at line 52 of file Mouse.java.
53 {
54 return PTRFLAGS_MOVE;
55 }
◆ getRightButtonEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getRightButtonEvent |
( |
Context |
context, |
|
|
boolean |
down |
|
) |
| |
|
inlinestatic |
Definition at line 39 of file Mouse.java.
40 {
41 if (ApplicationSettingsActivity.getSwapMouseButtons(context))
42 return (PTRFLAGS_LBUTTON | (down ? PTRFLAGS_DOWN : 0));
43 else
44 return (PTRFLAGS_RBUTTON | (down ? PTRFLAGS_DOWN : 0));
45 }
◆ getScrollEvent()
| static int com.freerdp.freerdpcore.utils.Mouse.getScrollEvent |
( |
Context |
context, |
|
|
boolean |
down |
|
) |
| |
|
inlinestatic |
Definition at line 57 of file Mouse.java.
58 {
59 int flags = PTRFLAGS_WHEEL;
60
61
62 if (ApplicationSettingsActivity.getInvertScrolling(context))
63 down = !down;
64
65 if (down)
66 flags |= (PTRFLAGS_WHEEL_NEGATIVE | 0x0088);
67 else
68 flags |= 0x0078;
69 return flags;
70 }
The documentation for this class was generated from the following file: