11-24-2012, 04:46 PM | #16 | |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
|
|
11-24-2012, 05:28 PM | #17 |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
@sven:
The Glo has two keys as well, the power slider (116) and the light button (90). My script does read from /dev/input/event1 for the touch screen, and my Tetris port for the Touch works on my Glo as well, so I think that the Touch and Glo use the same codes for touch events. |
Advert | |
|
11-24-2012, 06:00 PM | #18 |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
Thanks, I saw it already in your python script you have put on Pastebin. The thing what makes me wonder is, that my debug log clearly gives me a 102 when I press the home button. But apparently it seems to work on your Glo as well, as you mentioned earlier. I have to investigate to discover the magic behind.
|
11-25-2012, 02:06 PM | #20 | |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
in KoboTouchInput.java, line 260: Code:
start = new Point(600 - ypos, xpos); Code:
start = new Point(758 - ypos, xpos); |
|
Advert | |
|
11-25-2012, 02:50 PM | #21 |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
Thank you very much! That seems to be the solution. Sometimes it is not sufficient to rely on simulators only.
|
01-15-2013, 03:05 AM | #22 |
Member
Posts: 15
Karma: 400
Join Date: Jan 2012
Device: kobo touch
|
I hardcoded the touch size into the code, but a query of the framebuffer should tell it what the actual size is and is trivial to add to the jni.
FWIW I just got a glo, although it might be a while before I try ReaderZ on it. Mostly out of sheer laziness ... |
01-15-2013, 10:26 AM | #23 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Hi to everyone, sorry for the offtopic, but I'm trying to find the proper ioctl to get the screen to refresh and didn't manage to... since you seem to have everything already figured out, could you give me directions?
never mind, I found it out: http://code.google.com/p/mediaz/sour...inkfb/einkfb.c Last edited by giorgio130; 01-15-2013 at 10:48 AM. |
01-15-2013, 04:39 PM | #24 |
Member
Posts: 15
Karma: 400
Join Date: Jan 2012
Device: kobo touch
|
sven - I know this is probably an oversight, but you really need to include the source code to einkfb.c and the makefiles.
Currently you are violating the license terms by not including them. |
01-15-2013, 05:03 PM | #25 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
In fact I was thinking the app was using a proprietary library...
|
01-15-2013, 06:43 PM | #26 | |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
Quote:
Code:
arm-none-linux-gnueabi-gcc -I"C:\Program Files\CodeSourcery\Sourcery G++ Lite\arm-none-linux-gnueabi\libc\usr\include" -L"C:\Program Files\CodeSourcery\Sourcery G++ Lite\arm-none-linux-gnueabi\libc" -shared -Wall einkfb.c EInkFB.h -o libeinkfb.so |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Eink stanalone demo Qt eink driver for standalone qt apps ie no nickel nickel | tonyv | Kobo Developer's Corner | 2 | 12-27-2012 10:35 AM |
Glo Problem with Kobo Nickel font | RobertJSawyer | Kobo Reader | 1 | 10-14-2012 08:38 PM |
Touch Someone’s started a Nickel replacement... | Spheres | Kobo Developer's Corner | 9 | 08-04-2012 01:13 AM |
Mystery and Crime Various: Nickel Detective Sampler. V1. 9 Jan 2012 | crutledge | Kindle Books (offline) | 1 | 01-09-2012 09:02 PM |
Mystery and Crime Various: Nickel Detective Sampler. V1. 9 Jan 2012 | crutledge | ePub Books (offline) | 0 | 01-09-2012 07:30 PM |