fix link
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# forked from [Evidlo](https://github.com/Evidlo/remarkable_keyboard/blob/master/remarkable_keyboard/mappings.py)
|
# forked from [Evidlo](https://github.com/Evidlo/remarkable_mouse)
|
||||||
|
|
||||||
This adds touchpad functionality, so it is possible to make relative mouse movements with fingers on the touchscreen
|
This adds touchpad functionality, so it is possible to make relative mouse movements with fingers on the touchscreen
|
||||||
while it is still possible to use the stylus for absolute mouse movement.
|
while it is still possible to use the stylus for absolute mouse movement.
|
||||||
|
|||||||
@@ -90,11 +90,13 @@ def main():
|
|||||||
parser.add_argument('--monitor', default=0, type=int, metavar='NUM', help="monitor to output to")
|
parser.add_argument('--monitor', default=0, type=int, metavar='NUM', help="monitor to output to")
|
||||||
parser.add_argument('--threshold', metavar='THRESH', default=600, type=int, help="stylus pressure threshold (default 600)")
|
parser.add_argument('--threshold', metavar='THRESH', default=600, type=int, help="stylus pressure threshold (default 600)")
|
||||||
parser.add_argument('--evdev', action='store_true', default=False, help="use evdev to support pen pressure (requires root, Linux only)")
|
parser.add_argument('--evdev', action='store_true', default=False, help="use evdev to support pen pressure (requires root, Linux only)")
|
||||||
|
parser.add_argument('--finger', action='store_true', default=False, help="use touchscreen for relative movements")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
remote_stylus = open_remote_device(args, '/dev/input/event0')
|
remote_stylus = open_remote_device(args, '/dev/input/event0')
|
||||||
remote_finger = open_remote_device(args, '/dev/input/event1')
|
if args.finger:
|
||||||
|
remote_finger = open_remote_device(args, '/dev/input/event1')
|
||||||
|
|
||||||
if args.debug:
|
if args.debug:
|
||||||
logging.getLogger('').setLevel(logging.DEBUG)
|
logging.getLogger('').setLevel(logging.DEBUG)
|
||||||
@@ -118,12 +120,13 @@ def main():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
from remarkable_mouse.pynput import read_tablet
|
from remarkable_mouse.pynput import read_tablet
|
||||||
from remarkable_mouse.pynput import read_finger
|
|
||||||
stylus_thread = threading.Thread(target=read_tablet, args=(args, remote_stylus))
|
stylus_thread = threading.Thread(target=read_tablet, args=(args, remote_stylus))
|
||||||
finger_thread = threading.Thread(target=read_finger, args=(args, remote_finger))
|
|
||||||
|
|
||||||
stylus_thread.start()
|
stylus_thread.start()
|
||||||
finger_thread.start()
|
|
||||||
|
if args.finger:
|
||||||
|
from remarkable_mouse.pynput import read_finger
|
||||||
|
finger_thread = threading.Thread(target=read_finger, args=(args, remote_finger))
|
||||||
|
finger_thread.start()
|
||||||
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Reference in New Issue
Block a user