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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-25-2014, 02:38 PM   #1
DropDeadAlex
Junior Member
DropDeadAlex began at the beginning.
 
DropDeadAlex's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2014
Location: Brazil
Device: PW1
K5 Touch Prevent

Hi Everyone.

I would like to know if there's a way to prevent the functions associated to touch the screen. I mean: when I am reading, is more comfortable to put my thumb in the middle of the screen to hold the my ppw1. But if I do it, the dictionary, the next page, or whatever is called.

I just wanna to hold the ppw1 with my thumb in the screen without it do something unwanted.

Someone knows something like this?
DropDeadAlex is offline   Reply With Quote
Old 10-26-2014, 10:50 AM   #2
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,015
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Buy a used PW1 with a broken touch screen?


Find a soft cotton glove - cut thumb off of glove, wear on the middle-of-screen thumb.
(yes, really, not a joke)
You may have to experiment with the thickness of the glove as a thumb cover.

Last edited by knc1; 10-26-2014 at 10:52 AM.
knc1 is offline   Reply With Quote
 
Advertisement
Old 10-26-2014, 01:46 PM   #3
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 8,449
Karma: 15616579
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
As knc1 said.

The Kindle PW1/2 use capacitive touchscreens, you would not be the only MobileRead member to use a glove to prevent activating the touch sensor.
eschwartz is offline   Reply With Quote
Old 10-27-2014, 12:32 AM   #4
DropDeadAlex
Junior Member
DropDeadAlex began at the beginning.
 
DropDeadAlex's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2014
Location: Brazil
Device: PW1
Thanks. Nice tip, guys


But no one thought about to put an "double click" function in the KUAL or something like this? Something like to active a function that demands you to tap a double click to press the "buttons".


Like the "prevent screen saver" in the KUAL menu. Actually the double click would be much more useful than this.

...not intending to be rude
DropDeadAlex is offline   Reply With Quote
Old 10-27-2014, 05:29 AM   #5
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by DropDeadAlex View Post
Like the "prevent screen saver" in the KUAL menu. Actually the double click would be much more useful than this.
I came up with a solution for Kindle Touch once.
Maybe someone could adjust it to work with double click on PW.
baf is offline   Reply With Quote
Old 10-27-2014, 06:27 AM   #6
zxczxc
Connoisseur
zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.zxczxc can bend spoons with a thought.
 
Posts: 99
Karma: 134979
Join Date: Apr 2013
Device: PW
a way to implement double click could be, only register the 'even' number of touch.
so, if it's the first touch, do nothing.
if the second touch, accept it.
start the loop again.

i guess you would want to make a timeout too, so the 2nd touch has to happen within .5 seconds from the 1st.

surely there must be a way to hook in to the touch screen and do that - for the people in the know who want to do this.
good luck

Quote:
Originally Posted by baf View Post
I came up with a solution for Kindle Touch once.
Maybe someone could adjust it to work with double click on PW.
i remember seeing this beore, nice idea, although i don't have a use for it personally.
it should be very possible for someone to put the ideas i wrote above, into your code, if that would be ok

-edit. i just realized, doing it so simply like i said, you could press anywhere initially, and have the 2nd press at a completely different part of the screen, and it would reigster.
it would be best to have some leeway, the 2nd click is only recognized if it is +-5px of the first.


i wrote some basic, unworking, out of context code. i started working with baf's program, although having never worked with X11, never complied anything for kindle, etc etc, i'm not in a position to test it out so it's not really worth my time to do anymore since i won't be able to see what is right and wrong.
if anyone else wants to carry on from what i did then:


Spoiler:

Code:
//////
bool IgnoreTouch = true; //will the touch be ignored or not
bool isSecondTouch = false; //is this the second touch? -- is this NOT the first touch in 0.5 seconds?

int doubleClickDuration = 500;
int previousX = 0; // xpos of first click
int previousY = 0; // ypos of first click
//////





clickTime = xev.xkey.time;
timeDiff = (long) xev.xkey.time - (long) clickTime;

//check if this could be a double click -  see if the time difference between this touch and the previous is 0.5 seconds or less
if(timeDiff <= doubleClickDuration){
	isSecondTouch = true;
} else {
	isSecondTouch = false;
}


if(isSecondTouch){
	//if 2nd touch is +- 1px away from 1st
 	if( (xev.xbutton.x >= previousX - 1)  && (xev.xbutton.x <= previousX + 1) ){

 		if( (xev.xbutton.y >= previousY - 1)  && (xev.xbutton.y <= previousY + 1) ){

 			IgnoreTouch = false;

 		}
	}
}

//if this is a first touch, save the position so that we can check against it in the second touch
//because the touches need to be in the same place
if(!isSecondTouch){
	previousX = xev.xbutton.x;
	previousY = xev.xbutton.y;
}

Last edited by zxczxc; 10-27-2014 at 11:02 AM.
zxczxc is offline   Reply With Quote
Old 10-28-2014, 12:18 AM   #7
DropDeadAlex
Junior Member
DropDeadAlex began at the beginning.
 
DropDeadAlex's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2014
Location: Brazil
Device: PW1
ow man...

What I need to do this? Are there Some Develope Kit? Some tutorial/ firsts steps in the kindle programation...
DropDeadAlex 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
Prevent PDF Conversion trubbba Conversion 3 08-17-2012 01:53 AM
Prevent sending covers to Nook Touch? pitt01 Devices 11 12-22-2011 07:19 PM
How to prevent cover dl in .8? fenris Library Management 2 05-12-2011 02:54 PM
How to prevent adding tags? Piper65 Library Management 17 01-21-2011 09:17 AM
How to prevent ellipsis orphan? Chad48309 ePub 2 08-16-2010 09:43 PM


All times are GMT -4. The time now is 03:18 AM.


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