-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GamePad Mapping #83
Comments
As a work around, I am using the 'moonlight -map GamePad.map' command to generate the map file, then using LUNAs interface to select it. Just got some odd behavior to work out (not sure if the map is wrong or something else at present) |
Hi |
richiesgr, I used the command:
to create the map file, then pointed luna to it using lunas interface. I did this all whilst in the home directory: You can also use the same map file with two or more controllers. HL |
Hi |
@richiesgr
@hazardlabs: in the currently released version every controller type (except X360 controllers) calls moonlight as a subprocess. This is more or less unreliable because it sometimes just doesn't do anything at all (as you experienced), which is why the readme points out that this feature is 'sometimes not working' (and why the interface isn't really refined - originally I wanted to prompt using button images, but there's no point in doing so until the feature itself is working reliable). Either way, thanks a lot for giving a detailed description of both your issue and your workaround and thus helping others. Really appreciate it! |
Always happy to help, if you need any testing further down the line just give me a prod. HL |
Let's leave this open for reference until it's resolved :) |
It appears that Kodi is blocking any reads from attached input devices (at least when xboxdrv is used, but I guess this will be the same for any driver). I've tested this using both the
xboxdrv is auto-started via rc.local:
The behaviour is exactly the same each and every time:
I've found a mention of this behaviour on the OSMC forum:
Question is: how to get around this behaviour? Any time one starts a game, Kodi will restart and thus block the input devices again ... @hazardlabs I'd love to hear what you think... |
I'm thinking that proving default mappings would be a good way to go. Most games provide a mechanism to allow the remapping of game controls which would be away around it. I've only used a PS2 like controller from GAME uk, and previously used x360ce on windows to do my mappings. When you run the x360 mapping application, it tries to search for a user submitted mapping online and apply it. Could a similar system work for us? Scan the github repo for a matching mapping file, if not found ask the user to create one, and submit the map for others to use? Means less effort for lucky users. |
In general that's a really good idea. Providing default mappings as part of the repo isn't so much of an issue (other than that I only got ones for X360 controllers myself). I wouldn't automate a "push" to the repo from inside Luna though, but rather write a small web service that's automatically checked and where users can upload their own mapping files (possibly including a small vote system to have multiple mappings for the same controller ranked according to their usefulness, similar to how mappings for the Steam controller are distributed). In addition to the web service this would also include some changes to Luna's UI, but that's certainly doable. That being said, I'd like to include some metadata gathering (OS version, Luna's version, ...) while doing this to get a feel for the install base. Explicitly NO personal information (so no IP address, no game lists) other than a generated UID per single installation. This would be transmitted only once after installation or after updating the add-on. That is if there's no objection on your end. Of course, if an additional web service is the way to go, it'd be open source and publicly available as well. |
Hey @wackerl91, awesome project you did! I also had an issue with my Xbox360 controller (not wireless) not being mapped correctly. The workarounds above didn't work for me so I ended up doing the following thing and it works. Just posting it here in case someone is in the same case as me.
Where the arguments after --buttonmap are the correct mapping (for my controller). More info about these names on http://manpages.ubuntu.com/manpages/precise/man1/xboxdrv.1.html
|
@mchrbn That being said, you don't need to include Thanks for providing others with an alternative and working solution, greatly appreciate that! |
Looks like custom mapping files aren't needed anymore since moonlight-embedded 2.4, see #152 for more details. |
Hi there,
I'm attempting to create a custom mapping for a generic game pad (Looks like a PS2 controller, available from Game UK).
In the 'Select Input Devices' window, the game pad is report as 'DragonRise Inc. Generic USB Joystick'.
I then select 'Add Mapping', followed by 'Create Mapping'.
I give the name as a single letter (after the first three times I thought I would speed up the process...).
The next dialog box, titled 'Luna' asks me to 'left stick left'. There is no response from the software and I am unable to progress.
To get past this, I remove the existing controller from the 'Select Input Devices Window' and try again.
The left stick left dialog window now responds to input.
My particular controller does not have a 'special button' so I reuse the select button. After going through the motions, I get a 'Something went wrong' message after all input combinations have been completed. Is this because I am reusing a button for two commands?
The other note is that the delay between each instruction isn't long enough, often I will move 'right stick right' for example, and the system will cycle through a few instructions whilst I have still the right stick right.
If there is anything I can do to help, logs etc, please don't hesitate to ask.
Best Wishes
HL
The text was updated successfully, but these errors were encountered: