From 64cecb1b3e67c59329464a7ca53f7b530ded3411 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 19 Dec 2009 23:29:28 +0000 Subject: [PATCH] win32: try another tablet disabling tactic --- desmume/src/windows/main.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 500a26fb8..66e82faab 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -206,6 +206,25 @@ LPDIRECTDRAWCLIPPER lpDDClipBack=NULL; #define WM_CUSTINVOKE (WM_USER+52) +#ifndef __WISPSHRD_H +#define WM_TABLET_DEFBASE 0x02C0 +#define WM_TABLET_MAXOFFSET 0x20 +#define WM_TABLET_FLICK (WM_TABLET_DEFBASE + 11) +#define WM_TABLET_QUERYSYSTEMGESTURESTATUS (WM_TABLET_DEFBASE + 12) +#define MICROSOFT_TABLETPENSERVICE_PROPERTY _T("MicrosoftTabletPenServiceProperty") +#define TABLET_DISABLE_PRESSANDHOLD 0x00000001 +#define TABLET_DISABLE_PENTAPFEEDBACK 0x00000008 +#define TABLET_DISABLE_PENBARRELFEEDBACK 0x00000010 +#define TABLET_DISABLE_TOUCHUIFORCEON 0x00000100 +#define TABLET_DISABLE_TOUCHUIFORCEOFF 0x00000200 +#define TABLET_DISABLE_TOUCHSWITCH 0x00008000 +#define TABLET_DISABLE_FLICKS 0x00010000 +#define TABLET_ENABLE_FLICKSONCONTEXT 0x00020000 +#define TABLET_ENABLE_FLICKLEARNINGMODE 0x00040000 +#define TABLET_DISABLE_SMOOTHSCROLLING 0x00080000 +#define TABLET_DISABLE_FLICKFALLBACKKEYS 0x00100000 +#endif + void DesEnableMenuItem(HMENU hMenu, UINT uIDEnableItem, bool enable); inline bool IsDlgCheckboxChecked(HWND hDlg, int id) { @@ -4144,6 +4163,17 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM NDS_UnPause(); } return 0; + case WM_TABLET_QUERYSYSTEMGESTURESTATUS: + return TABLET_DISABLE_PRESSANDHOLD | + TABLET_DISABLE_PENTAPFEEDBACK | + TABLET_DISABLE_PENBARRELFEEDBACK | + TABLET_DISABLE_TOUCHUIFORCEON | + TABLET_DISABLE_TOUCHUIFORCEOFF | + TABLET_DISABLE_TOUCHSWITCH | + TABLET_DISABLE_FLICKS | + TABLET_DISABLE_SMOOTHSCROLLING | + TABLET_DISABLE_FLICKFALLBACKKEYS; + case WM_MOUSEMOVE: case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: