diff -Nru xhk-1.1/configure.ac xhk-1.2/configure.ac --- xhk-1.1/configure.ac 2019-01-11 14:16:47.000000000 +0000 +++ xhk-1.2/configure.ac 2019-07-26 14:07:09.000000000 +0000 @@ -1,4 +1,4 @@ -AC_INIT([xhk], [1.1], [kieranbingham@gmail.com]) +AC_INIT([xhk], [1.2], [kieranbingham@gmail.com]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC_C99 AM_PROG_CC_C_O diff -Nru xhk-1.1/debian/changelog xhk-1.2/debian/changelog --- xhk-1.1/debian/changelog 2019-01-22 13:58:20.000000000 +0000 +++ xhk-1.2/debian/changelog 2019-11-19 10:44:16.000000000 +0000 @@ -1,3 +1,13 @@ +xhk (1.2-1) unstable; urgency=medium + + * New upstream version 1.2 + * d/control + - Bump standard-version to 4.4.1. No other changes are required. + - Bump compat version to 12. + - Add Rules-Requires-Root: no. + + -- Kentaro Hayashi Tue, 19 Nov 2019 19:44:16 +0900 + xhk (1.1-1) unstable; urgency=medium * Initial upload to Debian. (Closes: #917091) diff -Nru xhk-1.1/debian/clean xhk-1.2/debian/clean --- xhk-1.1/debian/clean 2019-01-22 13:58:20.000000000 +0000 +++ xhk-1.2/debian/clean 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -Makefile -config.h -config.log -config.status -src/Makefile -stamp-h1 -src/xhk -src/xhk-xhk.o diff -Nru xhk-1.1/debian/control xhk-1.2/debian/control --- xhk-1.1/debian/control 2019-01-22 13:58:20.000000000 +0000 +++ xhk-1.2/debian/control 2019-11-16 09:11:46.000000000 +0000 @@ -3,15 +3,16 @@ Priority: optional Maintainer: Kentaro Hayashi Build-Depends: - debhelper-compat (= 11), + debhelper-compat (= 12), libx11-dev, libxi-dev, libxtst-dev, pkg-config -Standards-Version: 4.3.0 +Standards-Version: 4.4.1 Homepage: https://github.com/kbingham/xhk Vcs-Git: https://salsa.debian.org/debian/xhk.git Vcs-Browser: https://salsa.debian.org/debian/xhk +Rules-Requires-Root: no Package: xhk Architecture: any diff -Nru xhk-1.1/README.md xhk-1.2/README.md --- xhk-1.1/README.md 2019-01-11 14:16:47.000000000 +0000 +++ xhk-1.2/README.md 2019-07-26 14:07:09.000000000 +0000 @@ -1,6 +1,20 @@ [xHK] - An Xlib halfkeyboard implementation =========================================== +Getting started +--------------- + +To tryout xhk, run the following commands: + + git clone https://github.com/kbingham/xhk.git + cd xhk + sudo apt-get install build-essential autoconf automake pkg-config + sudo apt-get install libx11-dev libxi-dev libxtst-dev + ./autogen.sh + ./configure + make + src/xhk -ddd # -ddd executes with the highest debug level to see it working :) + In early 2014, I had an operation on my right elbow to remove some bone fragments. These were remaining from an accident in my teenage years - but had started to cause me some pain and grief. The operation @@ -30,19 +44,17 @@ My Solution ----------- -I write C code. I use linux, it seemed only reasonable that as a version -didn’t exist in this space I would create it and open-source it for all -to use (and improve) You can get the sources from [GitHub] and build it -yourself by following the instructions at my [xhk page][xHK] Once the -application is running - it is processing all your keypresses and -decides if it should mirror them. ‘Backspace’ is mirrored with the ‘Tab’ -key, whilst ‘Enter’ is mirrored with ‘Caps-Lock’ If you use this - do -drop me a mail to let me know how you get on, and if you find any -problems I’ll look into them to fix them. Perhaps in the future I’ll -pull together a GTK frontend for it, but it depends on how much use it -gets. +I write C code. I use linux, it seemed only reasonable that as a version didn’t +exist in this space I would create it and open-source it for all to use (and +improve) You can get the sources from [GitHub] and build it yourself by +following the instructions in the Getting Started section above. Once the +application is running - it is processing all your keypresses and decides if it +should mirror them. ‘Backspace’ is mirrored with the ‘Tab’ key, whilst ‘Enter’ +is mirrored with ‘Caps-Lock’ If you use this - do drop me a mail to let me know +how you get on, and if you find any problems I’ll look into them to fix them. +Perhaps in the future I’ll pull together a GTK frontend for it, but it depends +on how much use it gets. - [xHK]: http://kieranbingham.co.uk/xhk/ "xhk" [http://www.onehandkeyboard.org/]: http://www.onehandkeyboard.org/download/ "MacOS/Windows software" [http://warped.org/]: http://warped.org/blog/2008/10/06/the-free-one-handed-keyboard/ diff -Nru xhk-1.1/src/xhk.c xhk-1.2/src/xhk.c --- xhk-1.1/src/xhk.c 2019-01-11 14:16:47.000000000 +0000 +++ xhk-1.2/src/xhk.c 2019-07-26 14:07:09.000000000 +0000 @@ -46,7 +46,7 @@ #include "xhk-layout.h" #ifndef VERSION -#define VERSION "1.1" +#define VERSION "1.2" #endif static int verbose = 1; @@ -220,7 +220,7 @@ { DEBUG("Sending keycode %s %d, (%s) to XTest at %lu\n", key_down ? "Down" : "Up", keycode, keycode_to_char(screen, keycode), time); - int ret = XTestFakeKeyEvent(screen->display, keycode, key_down ? True : False, CurrentTime); + int ret = XTestFakeKeyEvent(screen->display, keycode, key_down ? true : false, CurrentTime); if (ret == 0) ERROR("XTestFakeKeyEvent failed to submit keycode %s %d at %lu\n", key_down ? "Down" : "Up", keycode, time); @@ -333,7 +333,7 @@ if(up_flag) { /* Space released before any other key */ /* We discarded the original Space Down event, so provide one now */ - SendKey(screen, keycode, True, CurrentTime); + SendKey(screen, keycode, true, CurrentTime); space = SPACE_STATE_START; return keycode; /* Space bar released, allow it to be pressed */ } else @@ -391,7 +391,7 @@ if (keycode < 0) return -1; - SendKey(screen, keycode, False, event->time); + SendKey(screen, keycode, false, event->time); INFO("\n"); @@ -414,7 +414,7 @@ if (keycode < 0) return -1; - SendKey(screen, keycode, True, event->time); + SendKey(screen, keycode, true, event->time); INFO("\n"); @@ -606,7 +606,7 @@ if (LocalScreen.display) reattach_device(LocalScreen.display, LocalScreen.keyboard.deviceid, LocalScreen.keyboard.attachment); - ApplicationRunning = False; + ApplicationRunning = false; break; } }