<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 31 March 2018 at 13:50, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br><br>On Friday, March 30, 2018, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 31 March 2018 at 03:48, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Mar 29, 2018 at 7:59 PM, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Actually, maybe what you're seeing are actually multitouch gestures. I had assumed they were only enabled if AppUsesMultitouch=y is set in the .cfg file, but if you look at DemoGLSurfaceView_nativeMotion<wbr>Event in src/video/android/SDL_androidi<wbr>nput.c, it appears they are always enabled and send normal scancodes, and AppUsesMultitouch only makes them additionally send joystick and SDL 1.3/2 multitouch events.<br><br></div>The four multitouch gestures send these scancodes:<br>static int multitouchGestureKeycode[MAX_M<wbr>ULTITOUCH_GESTURES] = {<br>SDL_KEY(SDL_KEY_VAL(SDL_ANDROI<wbr>D_SCREENKB_KEYCODE_6)),<br>SDL_KEY(SDL_KEY_VAL(SDL_ANDROI<wbr>D_SCREENKB_KEYCODE_7)),<br>SDL_KEY(SDL_KEY_VAL(SDL_ANDROI<wbr>D_SCREENKB_KEYCODE_8)),<br>SDL_KEY(SDL_KEY_VAL(SDL_ANDROI<wbr>D_SCREENKB_KEYCODE_9))<br>};<br></div><div><div><div class="gmail_extra"><br></div></div></div></div></blockquote><div><br></div></span><div>Interesting...<br><br></div><div>In androidinputtest.rpg I can see that 3-finger touch definitely sends the key that is defined for "MENU" which in that case is "m" and 4-finger touch sends what is configured for "BACK" which in that case is "K"<br></div></div></div></div></blockquote><div><br></div><div>So did disabling multitouch gestures also stop those phantom 3- and 4-finger touch keys?<br></div><div> </div></div></div></div></blockquote><div><br></div></span><div>Yes, exactly so.</div><div><br></div><div>After I made the multitouch gestures remappable, I set each one to something unique and tested on my phone with androidinputtest.rpg and and time I would rapidly drag with two fingers, all four of them would light up like a Christmas tree. They don't seem to work as intended.</div><div><br></div><div>Disabling them makes two-finger drag in the inventory screen work much better.</div></blockquote><div><br></div><div>I just had a look at the upstream commandergenius repo, and I see that pelya made two-finger drags emulate the mouse wheel, in 49b3987 (2014).  We forked in 2013. There were some other tweaks to the multitouch gesture code.<br><br>I also notice that the documentation for RedefinedKeysScreenKb was improved:<br># Redefine on-screen keyboard keys to SDL keysyms - 6 keyboard keys + 4 multitouch gestures (zoom in/out and rotate left/right)<br>RedefinedKeysScreenKb="LALT RETURN KP_PLUS KP_MINUS SPACE DELETE KP_PLUS KP_MINUS UNDO HELP"<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div class="gmail_extra"><div class="gmail_quote">On 30 March 2018 at 15:41, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I had a look at the code, and couldn't figure out where this is implemented.<br><br></div>But I was reminded that there is a settings menu, which we hide (using StartupMenuButtonTimeout in the .cfg) , which has a bunch of settings for touch and emulating right clicks and so forth. That might be the fastest way to explore the settings.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 30 March 2018 at 11:47, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>I also learned something odd about the android port. Apparently a three-finger tap triggers the "Menu" button, and a four-finger tap triggers the "Back" button. The ohrrpgce interprets both of these as ESC.<br><br></div>Unfortunately, the detection of three and four finger touches is not great, and a rapid two-finger drag (such as scrolling) can sometimes be interpreted as one of them.<br><br></div>I puzzled over why my two-finger scrolling kept exiting out of them menu at seemingly random times until I understood this.<br><br></div>Hopefully I can figure out how to disable it in AndroidAppSettings.cfg<br><br>---<br></div>James<br><br><div><div><br><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 2:28 PM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have tested this on my phone in the android port, and it very nearly works the way I want it to, but I am sure it will still need more tuning.<br><br></div><div>sdl-android's two-finger right mouse support is pretty good.<br><br></div><div>I am pleased how easy it is for me to accurately click inventory slots on my 5-inch phone screen. Your mileage may vary, depending on screen size, and perhaps on the physics of your fingertips ;)<br><br></div><div>I also tested without turning off the virtual gamepad, and I am pleased that the touch controls I have implemented so far work pretty decently even when the virtual gamepad is obstructing parts of the touchable screen.<br><br></div><div>For now I am not disabling the android virtual gamepad based on mouse controls being enabled (although I probably will do so some extend later)<br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 2:14 PM,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.co<wbr>m</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">james<br>
2018-03-29 14:14:01 -0700 (Thu, 29 Mar 2018)<br>
92<br>
Add optional right-drag scrolling support to plankmenus, and use it for the inventory screen<br>
---<br>
U   wip/menustuf.rbas<br>
U   wip/plankmenu.bas<br>
U   wip/<a href="http://plankmenu.bi" rel="noreferrer" target="_blank">plankmenu.bi</a><br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div><br></div></div>
</blockquote>
</div></div><br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div></div>