Help on NVIDIA Shield: no menu

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
dan000
Posts: 6
Joined: Sun Feb 19, 2012 9:52 pm
Location: Rockville, MD, USA

Help on NVIDIA Shield: no menu

Post by dan000 »

I've used ScummVM on several Android devices before without problems, but have one pretty big problem on my new Shield: I can't get the menu to open.

The Shield doesn't have a dedicated menu button, but in apps that don't natively support the gamepad, the Y button functions as a menu button. This works in every other app I've tried (even very old ones), but not in ScummVM, it seems.

I can't find any other way to open the Scumm menu, which obviously limits my gameplay. Any ideas? I have the stable version from the Play store, but can easily sideload another version, if need be.
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

Try the latest development master for Android from:
http://buildbot.scummvm.org/builds.html

You may want to try the OUYA build as well, as I think this may support Gamepad input...
dan000
Posts: 6
Joined: Sun Feb 19, 2012 9:52 pm
Location: Rockville, MD, USA

Post by dan000 »

I tried both of them. Can't bring up a menu on either one. Probably something weird with the device itself.
tristeele
Posts: 1
Joined: Fri Jan 03, 2014 5:38 pm

Post by tristeele »

I also have a Shield and have the same issue.

I hope someone comes up with a version for the Shield - because it is awesome. It even runs Urban Runner perfectly.
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

Hmm...
http://en.wikipedia.org/wiki/Nvidia_Shield

So JKEYCODE_MENU is event code 82:
https://github.com/scummvm/scummvm/blob ... ts.cpp#L96

Not dealt with by the normal events translation to OSystem:
https://github.com/scummvm/scummvm/blob ... s.cpp#L227

Ah, we only get the UP event from Menu button...
https://github.com/scummvm/scummvm/blob ... s.cpp#L373

I wonder if the Shield only sends DOWN event or similar... that would break this.
dan000
Posts: 6
Joined: Sun Feb 19, 2012 9:52 pm
Location: Rockville, MD, USA

Post by dan000 »

digitall wrote:I wonder if the Shield only sends DOWN event or similar... that would break this.
I'd be willing to help debug, if you just tell me what information to send you
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

dan000: You will need to be able to compile the Android build yourself and be familar enough with C++/Java to add debug output to the log in the source code at the point I indicated.

http://wiki.scummvm.org/index.php/Debug ... VM#Android provides a way of getting access to log output via ADB or alogcat.

http://wiki.scummvm.org/index.php/Compi ... VM/Android and the rest of http://wiki.scummvm.org/index.php/Developer_Central should help you setup a development environment and get our current source code via Git.

Please note that since the OUYA merge to v1.7.0git, the Android build will fail at runtime on Android prior to v3.1.
This is due to the use of an API which is only present in 3.1+. If this provides a problem, then use the v1.6.0 branch as a base or revert the OUYA changes to investigate this.
RETROGAMER2014
Posts: 1
Joined: Mon Jan 27, 2014 12:14 pm

Post by RETROGAMER2014 »

I too have an nvidia shield, the current 1.5 build is perfect on the shield as the virtual mouse (which is controlled by the right joystick) works a dream, button "a" left clicks - not sure what right clicks but the biggest drawback for me is that no button on the shield will bring the menu up.

Developing scummvm to incorporate this is out of my league and was wondering if there is anybody else willing to map the scummvm menu to a different button? (i can probably get keycodes etc off my own shield)

Thankyou all for your time!

(ps i have tried the SDL version but the joystick control is broken)
elvvv
Posts: 1
Joined: Tue Sep 16, 2014 12:15 pm

Post by elvvv »

Hello everyone

Just came around to share my solution with Scummvm 1.7.0 and lack of menu button in Nvidia Shield.

*warning: works on rooted and unlocked devices only*

I installed Xposed framework + gravity box module, then remapped "Home" button to bring up the menu by longpress (which launched Google Now by default) in Gravity box options, result works flawlessly for me as i'm able to show the menu in games and load/save/whatever.
Probably there is also some other way to remap the button, but i didn't try them.

Both Xposed and Gravity box can be found on XDA-developers site.

Cheers!
tdmendes
Posts: 1
Joined: Sat Jan 10, 2015 1:11 am

Still waiting

Post by tdmendes »

It's 2016 and I'm still hoping for a solution on scummvm and nvidia shield portable
Post Reply