Jump to content
LaunchBox Community Forums

Search the Community

Showing results for tags 'guide button'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • LaunchBox
    • Android
    • Beta Testing
    • Collections and Builds
    • Features
    • Troubleshooting
    • Website/Forum Support
    • Noobs
    • News and Updates
  • User-Created Content and Downloads
    • Big Box Custom Themes
    • Big Box Sound Packs
    • Big Box Startup Videos
    • Custom Theme Tutorials
    • Game Media
    • LaunchBox Custom Themes
    • Pause Themes
    • Platform Media
    • Playlists & Playlist Media
    • Startup Themes
    • Third-Party Applications and Plugins (Released)
    • Third-Party Applications and Plugins (Development and Beta Testing)
    • Videos
  • LaunchBox Games Database
    • News and Updates
    • Contributions
    • Features
    • Troubleshooting
  • Off Topic
    • DOSBox
    • Emulation
    • Games
    • Monkeys
    • Buy / Sell / Trade

Categories

  • Big Box Custom Themes
    • Legacy Themes
  • LaunchBox Custom Themes
  • Startup Themes
  • Pause Themes
  • Big Box Startup Videos
  • Big Box Sound Packs
  • Third-party Apps and Plugins
  • Game Media
    • Game Theme Videos
    • Game Media Packs
    • Game Marquee Images
    • Game Clear Logos
    • Game Box Art
    • Game Cart Images
    • Arcade Cabinets
  • Platform Media
    • Platform Theme Videos
    • Platform Console Images
    • Platform Backgrounds
    • Platform Banners
    • Platform Clear Logos
    • Platform Bezels/Overlays
  • Playlists & Playlist Media
    • Playlists
    • Playlist Theme Videos
    • Playlist Backgrounds
    • Playlist Banners
    • Playlist Clear Logos
  • LaunchBox/Big Box Media

Blogs

  • Jason's Devotions
  • Thatmans Blog
  • THAT NINTENDO SWITCH EARLY REVEAL WAS FROM A STOLEN CONSOLE
  • Version 8.8
  • Game Theme Videos
  • Exclusive Bezels

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. Took waaaaaay too much messing around to figure all parts of this out, but I have finally successfully found a working solution. The problem: I use an Xbox 360 controller for most emu gaming, and wanted to use the silver "Xbox logo" Guide button on the middle of the controller as my "Get to the menus" / "Get out of this game" button. My reasoning is pretty simple: the 360 has enough controls to serve as a pretty good solution for almost all kinds of games, up to the Playstation DualShock controls. ALL the buttons on the controller will be used up if you're using a 1:1 mapping to a DualShock controller except for the Guide button. RetroArch native recognizes this button already, and I use that for most of my emulation needs. However, I honestly don't like using the libretro port of MAME, as it's got a lot of weird things going on with its implementation, particularly for controls. However, MAME does not naively recognize the Guide button, because by default it's inputs are hidden. It doesn't show up as a normal joystick button, although it IS possible to read it's inputs. My solution: Because LaunchBox is awesome, it has support for AutoHotKey scripts built right in. This means you don't have to install and manage a separate application to get AHK functionality, you can just put add a script to an emulator's config in LB and LB will make that script active when the emulator is active. This is totally perfect for my needs, as it'll make it much less annoying to use non-RetroArch stuff. This script should be usable with pretty much any program or emulator, and it's pretty simple to customize. Caveats: This took me over a week to fully figure out. One important thing to know: The 360 Guide button will sometimes already do stuff on your system. If you have Steam installed and running, Steam will automatically open up Big Picture Mode. I'm a big fan of Valve and I own like hundreds of games in Steam, so I'm not gonna stop using that. The solution comes in the form of some awesome person on the internet who compiled a custom version of the file XInput1_4.dll. This is possible because a lot of Microsoft's library sourcecode is freely available online, to better assist developers who want to use their APIs & libraries. Some frickin genius built this version of XInput1_4.dll which filters out the Guide button inputs complete. To make use of this, you simply need to drop that file into your Steam install directory (same folder where you'll find Steam.exe). Then, if Steam's already running, completed exit it out of it and then re-launch. Then press your Guide button and marvel at how it does nothing at all. If you're running Windows 10 and you play PC games, you may have run into the "Game Bar" feature. This is new thing they've built in to try and make game streaming and other social stuff easier. Annoyingly, for a lot of people running Windows 10, pressing the Guide button will launch the Game Bar. I'm finding conflicting info on the "best" way to disable this functinality. I've taken some screenshots of what worked nice & easy for me. You can actually bring up the Game Bar in almost any program, including Chrome, by either pressing Guide or Windows Key+G. That should bring up the bar (as pictured in Step1.jpg). You can get into the Settings but clicking on the gear button on the right. That'll get you into the screen I've pictured in Step2.jpg. About halfway down on the settings is the option "Open Game bar using Guide on controller". UNCHECK this option. While you're at it you'll probably want to disable the Recording option completely, unless you plan on being a Twitch star If you have enabled the GameBar in Chrome just to get to the setting, once you're done simply uncheck the "Remember this as a game" option down towards the bottom. So far in my silly emulation adventures, these are the only 2 things I've found that grab the Guide button functionality. I ran into and solved both of these a while ago when I started working on getting my RetroArch setup figured out. Onward to MAME itself! MAME has been under development for years and is the subject of a lot of discussion, so researching my issues in controlling MAME gave tons of results, with a lot of info being old & useless. One great thing I learned: the old practice of having to patch the MAME source code and compile a custom build to get DirectInput working is no more. My AHK solution is working fine with the stock standard builds of MAME available from the official site. I tested both version 178 and 179. The key thing is, some time ago the devs added command line or .ini options allowing the user to specify what methods to use for inputs. The key one to make the AHK inputs work is keyboardprovider. This option MUST be set to "dinput" (for DirectInput). Without this, MAME will not read the keystrokes coming from AHK. The simplest way to set this is to just edit your mame.ini file, but you can also add it as a command line option if you want to do that instead for some reason. The actual script itself took a lot of trial and error, because I just couldn't get MAME to read inputs at all. A lot of this was my own ignorance for how AHK scripts work, but also MAME's intolerance to using the standard "Send" or "SendInput" methods most AHK scripts employ. The trick was to explicitly send both the "key down" and "key up" events with a separate "sleep 10" in between. I originally had a lot of problems with getting input from the Guide button, but I eventually found that using the "scancode" vk07sc000:: actually does work. It randomly stopped working on me a couple of times and I honestly don't know why, but rebooting my machine restored functionality. So, here's the script I'm using to translate the 360 Guide button into a press of the Tab key: vk07sc000:: Send {Tab down} Sleep 10 Send {Tab up} return I have tested this with the current version of LaunchBox and MAME 178 and 179 and it works exactly as expected. By default the Tab key brings up the MAME OSD, allowing the user to do admin tasks like fix inputs and exit out of MAME, which is exactly what I want. You can easily change what keystroke this sends, or remap what Tab does in MAME. Hope this post helps some people out, as it was a lot of work figuring this one out XInput1_4.dll
×
×
  • Create New...