|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2009
Device: sony prs-505
|
Hi,
I'm currently working on modification of key mapping by changing \resources\scripts\main.xml. I had some successes to give browsing functionalities to the joypad in reading mode, by adding following lines in main.xml (around line 1195) <kbookPage id="PAGE" left="0" right="0" top="0" bottom="30" href="x-id://bookData"> <code> (note: modification starts below) <function id="doLeft"> this.bubble("doPrevious"); </function> <function id="doRight"> this.bubble("doNext"); </function> <function id="doCenter"> this.bubble("doNext"); </function> Basically, left and right keys were mapped to browse forward/backward and the joypad central key was mapped to turning to next page. However, in some books with super links, clicking the central key on a link wouldn't enter. The solution I can think is by mapping the volume+ key to it, by adding <function id="doLoud"> this.bubble("doCenter"); </function> However, it doesn't work and instead, pressing the v+ key makes going to the next page! So there must be something wrong in the this.bubble("doCenter"); but I can't figure it out. I appreciate if anyone can help me out. |
|
|
|
![]() |
| Tags |
| key mapping |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Page Mapping Using toc.ncx | lorddon | ePub | 35 | 01-16-2018 01:18 PM |
| Theban Mapping Project | Joebill | Lounge | 2 | 05-08-2010 01:51 PM |
| Automatic date of modification and creation | paulpeer | Sigil | 6 | 04-05-2010 12:15 PM |
| In-Device PDF Renderer Modification | Conrad | Sony Reader Dev Corner | 3 | 05-12-2009 06:21 AM |
| mind mapping tools ? | parryl | iRex | 9 | 05-21-2008 11:19 AM |