|
@@ -3094,9 +3094,9 @@ void DisplayServerWindows::set_context(Context p_context) {
|
|
#define SIGNATURE_MASK 0xFFFFFF00
|
|
#define SIGNATURE_MASK 0xFFFFFF00
|
|
// Keeping the name suggested by Microsoft, but this macro really answers:
|
|
// Keeping the name suggested by Microsoft, but this macro really answers:
|
|
// Is this mouse event emulated from touch or pen input?
|
|
// Is this mouse event emulated from touch or pen input?
|
|
-#define IsPenEvent(dw) (((dw)&SIGNATURE_MASK) == MI_WP_SIGNATURE)
|
|
|
|
|
|
+#define IsPenEvent(dw) (((dw) & SIGNATURE_MASK) == MI_WP_SIGNATURE)
|
|
// This one tells whether the event comes from touchscreen (and not from pen).
|
|
// This one tells whether the event comes from touchscreen (and not from pen).
|
|
-#define IsTouchEvent(dw) (IsPenEvent(dw) && ((dw)&0x80))
|
|
|
|
|
|
+#define IsTouchEvent(dw) (IsPenEvent(dw) && ((dw) & 0x80))
|
|
|
|
|
|
void DisplayServerWindows::_touch_event(WindowID p_window, bool p_pressed, float p_x, float p_y, int idx) {
|
|
void DisplayServerWindows::_touch_event(WindowID p_window, bool p_pressed, float p_x, float p_y, int idx) {
|
|
if (touch_state.has(idx) == p_pressed) {
|
|
if (touch_state.has(idx) == p_pressed) {
|