intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Feb 23, 2019 5:01 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu May 25, 2017 3:09 pm 
Offline

Joined: Thu Feb 25, 2016 10:19 am
Posts: 14
Changes to upstream gargoyle (https://github.com/garglk/garglk):

New version now supports these in-game touch screen gestures:

  • One finger single tap on input line: place cursor
  • One finger double tap on word in input line: place cursor after tapped word
  • One finger double tap on word in game text to insert it into input line at cursor position (based on patch from: https://github.com/RedHatter/granite)
  • One finger swipe up: page up
  • One finger swipe down: page down
  • One finger swipe left: move cursor left
  • One finger swipe right: move cursor right
  • Two finger single tap on left side of the game screen: delete character right of cursor (= DEL key)
  • Two finger single tap on right side of the game screen: clear input line
  • Two finger single tap on middle-top of the game screen: command history: previous (= key "cursor up")
  • Two finger single tap on middle-bottom of the game screen: command history: next (= key "cursor down")

Github: https://github.com/poker335/garglk
Binaries: https://www.mobileread.com/forums/showp ... ostcount=1

Kindle port based on patches from: http://www.fabiszewski.net/kindle-gargoyle/


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat May 27, 2017 4:33 pm 
Offline
User avatar

Joined: Fri Sep 30, 2016 7:02 pm
Posts: 406
Location: USA
Cool, got to try the new update today. Is there a way to exit the app? The only way I could figure out was to type "quit" into the story engine.

_________________
Thunderword not forgotten, will pick back up 2nd half of 2018.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue May 30, 2017 2:31 am 
Offline

Joined: Thu Feb 25, 2016 10:19 am
Posts: 14
Right now entering quit at the prompt is the only way.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue May 30, 2017 3:14 am 
Offline
User avatar

Joined: Fri Sep 30, 2016 7:02 pm
Posts: 406
Location: USA
Cool. Any thoughts on how to code it so the "top touch" brings up the normal Kindle top-menu? Perhaps as an optional setting?

_________________
Thunderword not forgotten, will pick back up 2nd half of 2018.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue May 30, 2017 6:53 am 
Offline

Joined: Thu Feb 25, 2016 10:19 am
Posts: 14
No, unfortunately I don't know of any native GTK App that achieved this on Kindle. The standard Kindle framework runs in (some ancient) Java, and accessing that framework and its features is not well documented at all.

What could be done without much effort is to implement a context menu, that opens when you do a "touch & hold" gesture, like kterm implements it, screenshot: http://www.fabiszewski.net/kindle-terminal/ (kterm = terminal emulator for Kindle).

KOReader for Kindle has something similar to the Kindle's top-menu, but it is an implementation they did themselves, and they use a different programming language and possibly GUI framework.

I was rather focusing on things that could be done easily, and that enhance my personal usability experience, so I focused on "glueing" touch gestures offered by the used Xorg touch driver to already existing gargoyle functions. Without that, I found editing the input line to be a pain, because the Kindle's on-screen keyboard lacks any ctrl-keys and cursor keys, nor does the GUI framework support exact touch based cursor positioning (like the magnifying glass in iOS).

What I was also looking into, but didn't find any info about (yet), is this:
https://www.mobileread.com/forums/showt ... p?t=283918

I would like to use this for word suggestions, but the on-screen keyboard's API is not open (as could be expected).

Still, I am now quite happy for my personal use. Next step would be to clean up the implementation to be able to send a pull request to the main gargoyle project. Only after that would I look into more features.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue May 30, 2017 11:38 am 
Offline
User avatar

Joined: Fri Sep 30, 2016 7:02 pm
Posts: 406
Location: USA
perhaps we could come up with some gesture and a "are you sure?" prompt to exit/kill the app? Even some odd sequence like touching all 4 corners in under 10 seconds. Then there would be no need to deviate in the visual side from what is there now.

_________________
Thunderword not forgotten, will pick back up 2nd half of 2018.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Dec 21, 2018 3:26 pm 
Offline

Joined: Thu Feb 25, 2016 10:19 am
Posts: 14
Hi all,

I updated the Kindle port with more screen-tap gestures for cursor movement/placement, fixed a crash, and updated to latest gargoyle sources:

https://www.mobileread.com/forums/editp ... id=3526963

Supported in-game touch screen gestures in newest version:
  • One finger single tap on input line: place cursor
  • One finger double tap on word in input line: place cursor after tapped word
  • One finger double tap on word in game text to insert it into input line at cursor position (based on patch from: https://github.com/RedHatter/granite)
  • One finger swipe up: page up
  • One finger swipe down: page down
  • One finger swipe left: move cursor left
  • One finger swipe right: move cursor right
  • Two finger single tap on top-left side of the game screen: clear input line
  • Two finger single tap on middle-left side of the game screen: delete characters left of cursor until first whitespace
  • Two finger single tap on bottom-left side of the game screen: move cursor to the beginning of the word to the left
  • Two finger single tap on top-right side of the game screen: delete character right of cursor (= DEL key)
  • Two finger single tap on middle-right side of the game screen: delete characters right of cursor until first whitespace
  • Two finger single tap on bottom-right side of the game screen: move cursor to the beginning of the next word
  • Two finger single tap on top-center of the game screen: command history: previous (= key "cursor up")
  • Two finger single tap on bottom-center of the game screen: command history: next (= key "cursor down")


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group