Skip to content

Instantly share code, notes, and snippets.

@michalrus
Created September 9, 2014 09:37
Show Gist options
  • Save michalrus/e2511902b199307ba358 to your computer and use it in GitHub Desktop.
Save michalrus/e2511902b199307ba358 to your computer and use it in GitHub Desktop.
1) Extract `wine-l-pa.tar.gz` downloaded from AUR.
2) Patch with `patch -s -Np1 -i wine-l-pa.tar.gz-raw-mouse-input.patch`.
3) `cd wine-l-pa` and `makepkg`.
m.
diff -uNr a/wine-l-pa/PKGBUILD b/wine-l-pa/PKGBUILD
--- a/wine-l-pa/PKGBUILD 2014-09-09 02:50:46.000000000 +0200
+++ b/wine-l-pa/PKGBUILD 2014-09-09 10:10:45.376959963 +0200
@@ -123,6 +123,7 @@
wine-gcc49.patch
ntdll-Use_lockfree_implementation_for_get_cached_fd.patch
Set_ldr-EntryPoint_for_main_executable.patch
+ raw-mouse-input.patch
)
md5sums=('4e974ad6b025582a6d29cbd29d92ee2f'
@@ -236,7 +237,8 @@
'5c072659a8da6d1d7245641bd39b8dbd'
'ef8b7ba352f86ed3e3621989f7865710'
'ea63c5c9c226260c93551b89003fa899'
- 'e391591c95f043ea6f1b9bf411073d70')
+ 'e391591c95f043ea6f1b9bf411073d70'
+ '2100b31a3efd838daa77d58478a562dd')
pkgdesc="Wine-L_pa: Wine geared for Proaudio"
url="https://sourceforge.net/projects/l-proaudio/"
@@ -590,6 +592,15 @@
msg2 " SUCCESS :)"
############################################################################
+ #
+ # raw mouse input for photoshop
+ #
+
+ msg "Applying raw-mouse-input.patch"
+ patch -s -Np1 -i $srcdir/raw-mouse-input.patch
+ msg2 " SUCCESS :)"
+
+ ############################################################################
#
# Winepulse Support
#
diff -uNr a/wine-l-pa/raw-mouse-input.patch b/wine-l-pa/raw-mouse-input.patch
--- a/wine-l-pa/raw-mouse-input.patch 1970-01-01 01:00:00.000000000 +0100
+++ b/wine-l-pa/raw-mouse-input.patch 2014-09-09 10:08:46.388133921 +0200
@@ -0,0 +1,15 @@
+--- a/dlls/user32/input.c 2014-09-05 20:11:13.000000000 +0200
++++ b/dlls/user32/input.c 2014-09-08 21:30:10.430091763 +0200
+@@ -377,10 +377,12 @@
+
+ if ((ret = USER_Driver->pGetAsyncKeyState( key )) == -1)
+ {
++/*
+ if (thread_info->key_state &&
+ !(thread_info->key_state[key] & 0xc0) &&
+ GetTickCount() - thread_info->key_state_time < 50)
+ return 0;
++*/
+
+ if (!thread_info->key_state) thread_info->key_state = HeapAlloc( GetProcessHeap(), 0, 256 );
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment