Author Topic: Testers needed! (input plug-in, touchscreen controls)  (Read 12114 times)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #30 on: March 17, 2013, 08:14:09 PM »
Here is a test with the scaling factor option (in the Touchscreen preferences section).  It lets you go from half the calculated scale to double with a granularity of 1%.  Should give a nice range of possible scales:

Touchscreen Scaling Factor Test
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #31 on: March 17, 2013, 09:06:10 PM »
I just built directly from the source, and it works great on my xperia play.  Nice!

However, nothing is showing up on my Nexus 7 (touching doesn't do anything either).  Perhaps the 0% scale issue.  I'll dig into it some more and throw in some logging to see what's going on and get back to you.  Let me know if the code in github isn't up to date with the APK you just posted here.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #32 on: March 17, 2013, 09:40:31 PM »
Ok, I completely reinstalled the app on my Nexus7 and now my controls are visible and usable.  Must be something related to the user preference files, not the assets, because I did load the assets fresh before.  So we'll have to check out what's going on there.

I've seen this kind of thing before with the preference files and it usually has to do with the stored value in a preference no longer being valid.  Like if the input plugin was 'input-sdl' and the new version replaces input-sdl with 'input-android'.  There's already some safety net code to handle that kind of thing for list preferences, so it must have something to do with another kind of preference.

Edit: scratch that, the safety net must be applied manually in MenuActivity (doesn't apply automatically to all ListPreferences).  I did switch the layout a few times, though, so I would have fixed the stale preference if the problem related to the Layout option.  Head scratcher...
« Last Edit: March 17, 2013, 09:43:44 PM by littleguy »
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #33 on: March 17, 2013, 10:05:47 PM »
It could be related to the size option.  I'll do some tests to see if I can reproduce it when upgrading from a different version.  Will probably just take adding some sanity checks into the code that decides which layout to use based on the various preferences, size, and orientation.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #34 on: March 17, 2013, 10:30:08 PM »
Sounds good.

On a side note, setting the scale to 150% made the old and new touchscreen skins identical to within a pixel or two on my Nexus 7.  Seems like a pretty round number, so I don't know if it's a coincidence or what.  Anyhow, if folks complain that their controls shrunk, 150% might be a good starting suggestion.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #35 on: March 18, 2013, 12:16:17 PM »
I made some auto-hold overlays for the stock skins.  Need to test them on some other devices this evening, but if you are fine with the auto-hold ini format, I can post them tonight.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #36 on: March 18, 2013, 12:59:36 PM »
Sure, that will be good.  I forgot about auto-hold entirely actually - need to make sure the scaling part is working for it as well.  The last bug left to fix besides that is the analog stick image position when it is released (it's not correctly taking scale into account).  After that should be able to have some folks test to verify it is working, then ready to publish.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Testers needed! (input plug-in, touchscreen controls)
« Reply #37 on: March 18, 2013, 01:02:07 PM »
Cool, will do.  The auto-hold images were indeed correctly scaled.  It even worked with a custom skin that Gilles had created for testing auto-hold.  It Just Worked. :)

I tried all the tablet layouts and just need to test the phone layouts this evening to confirm I don't have any typos/bugs.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version