Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2009, 10:30 PM   #1
howdypda
Junior Member
howdypda began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2009
Device: sony prs-505
Question Please help on modification of key mapping

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.
howdypda is offline   Reply With Quote
Reply

Tags
key mapping

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Mapping Using toc.ncx lorddon ePub 6 07-22-2010 09:59 AM
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


All times are GMT -4. The time now is 02:36 AM.


MobileRead.com is a privately owned, operated and funded community.