Skip to content

Commit

Permalink
fix events for screen press and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Evidlo committed Sep 17, 2020
1 parent fc7d17a commit 229f762
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions remarkable_sim/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ def release(self, button):

# screen initial press
def screen_press(self, event):
if self.input == 'Stylus':
if self.input.get() == 'Stylus':
write_evdev(self.fifo_stylus, *codes_stylus['abs_distance'], 0)

if self.input == 'Touch':
if self.input.get() == 'Touch':
pass

self.screen_motion(event)
Expand Down Expand Up @@ -269,11 +269,11 @@ def screen_motion(self, event):

# screen release
def screen_release(self, event):
if self.input == 'Stylus':
if self.input.get() == 'Stylus':
write_evdev(self.fifo_stylus, *codes_stylus['abs_distance'], 100)
write_evdev(self.fifo_stylus, *code_sync)

if self.input == 'Touch':
if self.input.get() == 'Touch':
pass


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='remarkable-sim',
version='1.0.4',
version='1.0.5',
packages=['remarkable_sim'],
author="Evan Widloski",
author_email="[email protected]",
Expand Down

0 comments on commit 229f762

Please sign in to comment.