Skip to content

Commit

Permalink
Turns out the Nia is a special snowflake
Browse files Browse the repository at this point in the history
Looks like it's actually outputting Phoenix-like event streams...

c.f., baskerville/plato#220
  • Loading branch information
NiLuJe committed Feb 9, 2022
1 parent 1acaef7 commit a0d0973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fbink_button_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int
SEND_INPUT_EVENT(EV_SYN, SYN_REPORT, 0);
} else if (deviceQuirks.isKoboMk7) {
// NOTE: Roughly corresponds to what we call the "Snow" protocol in KOReader.
// Should handle the H2O²r2, (Aura SEr2?), Clara HD, Forma & Nia
// Should handle the H2O²r2, (Aura SEr2?), Clara HD, Forma.
// And possibly the H2O²r1, although this one will need a dedicated quirk to compute the proper x/y coords.
SEND_INPUT_EVENT(EV_KEY, BTN_TOOL_FINGER, 1);
SEND_INPUT_EVENT(EV_KEY, BTN_TOUCH, 1);
Expand Down Expand Up @@ -303,7 +303,7 @@ static int
SEND_INPUT_EVENT(EV_SYN, SYN_REPORT, 0);
} else {
// NOTE: Corresponds to what we call the "Phoenix" protocol in KOReader.
// Which means we should cover the: KA1, H2O, Aura, Aura SEr1, (Aura SEr2?), Glo HD & Touch 2.0
// Which means we should cover the: KA1, H2O, Aura, Aura SEr1, (Aura SEr2?), Glo HD, Touch 2.0 & Nia.
SEND_INPUT_EVENT(EV_ABS, ABS_MT_TRACKING_ID, 1);
SEND_INPUT_EVENT(EV_ABS, ABS_MT_TOUCH_MAJOR, 1);
SEND_INPUT_EVENT(EV_ABS, ABS_MT_WIDTH_MAJOR, 1);
Expand Down

0 comments on commit a0d0973

Please sign in to comment.