Skip to content

Commit

Permalink
[harmony] update harmony for kobo
Browse files Browse the repository at this point in the history
  • Loading branch information
okay committed Sep 25, 2023
1 parent e6e1aed commit fc7af17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/harmony/app/canvas.cpy
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,15 @@ namespace app_ui:
eraser->set_framebuffer(self.layers[cur_layer].fb.get())

bool ignore_event(input::SynMotionEvent &ev):
return input::is_touch_event(ev) != NULL
#ifndef KOBO
return input::is_touch_event(ev) != NULL
#endif

ev.pressure = 0.5
ev.tilt_x = 0.5
ev.tilt_y = 0.5

return false

void on_mouse_move(input::SynMotionEvent &ev):
if not self.layers[cur_layer].visible:
Expand Down
2 changes: 1 addition & 1 deletion src/rmkit/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifdef REMARKABLE
#define SAVE_DIR "/home/root/harmony/saved_images"
#else
#define SAVE_DIR "./saved_images"
#define SAVE_DIR "/opt/data/harmony/"
#endif
#ifdef DEV
// #define DEV_KBD "/dev/input/by-path/pci-0000:24:00.3-usb-0:3.2:1.0-event-kbd"
Expand Down

0 comments on commit fc7af17

Please sign in to comment.