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 11-16-2008, 02:30 PM   #1
lovebeta
Groupie
lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.
 
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
Use Enter key to turn page

Since the enter key really only does link navigation in the page group, I was wondering if we can reload/add it with pageturn function as well. The motivation of doing this is that, I feel, the enter key is the most comfortable one to press on PRS-505. And needless to say, next_page is the MOST frequently used key on an eReader.

In order to achieve this, I have to modify main.xml with something like this sudo code:

Code:
<kbookPage id="PAGE" left="0" right="0" top="0" bottom="30" href="x-id://bookData">
	<code>
		<function id="doCenter">
			if (this.isLink()) {
				this.gotoLink();
			} else this.bubble("doNext");
		</function>
This way, we can still preserve the link navigation function of the enter key. Now the question is, what is the library function for judging if an object is a link, and if it is, what is the library function to follow this link?

lovebeta is offline   Reply With Quote
Old 11-17-2008, 07:22 PM   #2
BobVA
Addict
BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.
 
Posts: 221
Karma: 1500
Join Date: Oct 2006
Device: PRS950, T1, T2, iPad, Nook
That's a good idea - you might see if Jeff would add it to his 505 patcher application "PRSCustomizer."

http://www.mobileread.com/forums/showthread.php?t=27177
BobVA is offline   Reply With Quote
Old 11-17-2008, 11:38 PM   #3
lovebeta
Groupie
lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.
 
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
Oh, the code I listed are sudo-code, i.e., they don't work yet. I am asking expert's help to find out the proper function to call.
lovebeta is offline   Reply With Quote
Old 11-18-2008, 07:36 PM   #4
BobVA
Addict
BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.BobVA once ate a cherry pie in a record 7 seconds.
 
Posts: 221
Karma: 1500
Join Date: Oct 2006
Device: PRS950, T1, T2, iPad, Nook
See Gwynevans suggestion in this thread:
http://www.mobileread.com/forums/showthread.php?t=30689

I think you could use the same approach.

Cheers,
Bob
BobVA is offline   Reply With Quote
Old 11-25-2008, 03:37 PM   #5
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 986
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Quote:
Originally Posted by BobVA View Post
See Gwynevans suggestion in this thread:
http://www.mobileread.com/forums/showthread.php?t=30689

I think you could use the same approach.
That thread shows how to map holding the "Enter" key down to an action.

In applicationStart.xml we have:

<boolean key="0x27" do="doCenter"/>
<boolean key="0x27-hold" do="doCenter"/>

So Enter and hold+Enter do the same thing.

I suggest mapping Enter to the page turn; this still leaves hold+Enter as it is at the moment:

<boolean key="0x27" do="doNext"/>
<boolean key="0x27-hold" do="doCenter"/>

This seems to me the simplest solution. You just need to remember to hold down the Enter key to get it to do what it currently does.

Edit: I have just tried this and it works very well.

Last edited by ShellShock; 11-26-2008 at 06:03 PM.
ShellShock is offline   Reply With Quote
Old 11-27-2008, 06:26 PM   #6
lovebeta
Groupie
lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.
 
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
Quote:
Originally Posted by ShellShock View Post
That thread shows how to map holding the "Enter" key down to an action.

In applicationStart.xml we have:

<boolean key="0x27" do="doCenter"/>
<boolean key="0x27-hold" do="doCenter"/>

So Enter and hold+Enter do the same thing.

I suggest mapping Enter to the page turn; this still leaves hold+Enter as it is at the moment:

<boolean key="0x27" do="doNext"/>
<boolean key="0x27-hold" do="doCenter"/>

This seems to me the simplest solution. You just need to remember to hold down the Enter key to get it to do what it currently does.

Edit: I have just tried this and it works very well.
This is exactly what I did. It is not perfect, but I'll settle on this before I found the proper functional call. There aren't that many in page jumps anyway.
lovebeta is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 Page turn John F Sony Reader 6 09-03-2010 09:13 AM
PRS-300 5 Second to turn Page! Elton Noway Sony Reader 7 06-05-2010 06:38 PM
How to enter network key on PocketBook 302 kacir PocketBook 7 05-05-2010 02:25 PM
Classic Is there a trick to the page turn? nabour Barnes & Noble NOOK 16 02-07-2010 06:49 PM
PRS-500 Direct Page Control with Enter Nogg Sony Reader Dev Corner 81 02-28-2008 03:11 AM


All times are GMT -4. The time now is 09:02 PM.


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