Kodi Community Forum
Xbox 360 wireless controller Keymap.xml - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Xbox 360 wireless controller Keymap.xml (/showthread.php?tid=47302)

Pages: 1 2


- twotone8 - 2010-06-17

i use an emulator in order to convince my computer that my ps2 controller is actually a 360 controller. i do this by placing (re replacing) an xinput1_3.dll file in the root folder of whichever game i want to play. works like a charm, but i'm unsure how to use this with xbmc. i've attempted to place the xinput1_3.dll file in the 360eventclient folder, as well as the xbmc folder itself, but so far nothing seems to be working. where does the eventclient draw it's commands from. is there some root windows folder i should be using?

the emulator can be found here

info about the emulator can be found here


- doat - 2010-08-07

EDIT: Nvm i found this http://ronin-tech.com/Content/pid=30.html and it works very well.


- HenryFord - 2010-11-08

Hey,

i know this post is older, but i want to respond on the implementation of the evtcl as a service: This does not work, Windows cannot start the service, it does not respond.

Does anyone know how to do this? Or is it possible to launch the evtcl with a tray-icon in windows (instead of a console-window)?
Hence the evtcl is in the svn, is it recommend to update it? Im not sure of the language (guessing C++) but that should be rather simple, I could give it a try...

Edit
Btw: I am throwing together a little .NET-App which lets you joint-execute binarys at one click (so you can start XBMC and any EventClient together, for example)... I am sure there is something out there already, but if anyone is interested, just let me know...
There will be also an option to put a program in the foreground - this will allow you to launch the evtcls without bringing them to the front (ie in front of the xbmc)


- HenryFord - 2010-11-08

I got it to work... however, I had to learn that this is only possible through some dirty hacking, because the Windows API does not intend console applications to be minimized to the tray...

However, this is what I came up with so far:
Add this to the "int main":
Code:
//Minimize the window to tray so noone cares...
    //window handle
    hWnd=FindWindow("ConsoleWindowClass",NULL);

    //hide the window
    ShowWindow(hWnd,0);

    //tray info
    Tray.cbSize=sizeof(Tray);
    Tray.hIcon=LoadIcon(NULL,IDI_WINLOGO);
    Tray.hWnd=hWnd;
    strcpy(Tray.szTip,"Xbox360 EventClient for XBMC");
    Tray.uCallbackMessage=WM_LBUTTONDOWN;
    Tray.uFlags=NIF_ICON | NIF_TIP | NIF_MESSAGE;
    Tray.uID=1;

    //set the icon in tasbar tray
    Shell_NotifyIcon(NIM_ADD, &Tray);

These includes and definitions need to be added:
Code:
#include<shellapi.h>
#include<windows.h>
//(...)
NOTIFYICONDATA Tray;
HWND hWnd;

This will minimize the app instantly to the tray, but you cannot do anything with it (you have to kill it via task manager).
I created a patch-file if necessary, but I'm not sure where to put it?


- Zak - 2011-04-08

HenryFord can you upload a fixed binary to http://www.multiupload.com/ please?
As a bonus you could update the wiki about 360 controller support in XBMC and add your link:
http://wiki.xbmc.org/index.php?title=Remote_Control_Reviews


- HenryFord - 2011-04-08

Could definetely do that. I may look at the wiki, but I do not intend to post it there, because my solution is nothing more then a really dirty workaround.

I came up with a solution to actually use the Keymap.xml - which I find way better since if the XBMC is not in the focus the eventclient will still send signals to it and XBMC will still react on those while with a Keymap that is not the case (check my signature on guide including instructions to use the Keymap.xml with your controller).

However - I can upload the binary tonight, I'll edit the post.

Edit 1:
Updated the Wiki.


- Zak - 2011-04-10

I don't fully understand, you're saying that Xbox360EventClient.exe is no longer required? Also I could not find the binary, it still links to the old forum post.


- HenryFord - 2011-04-11

Jup - the event-client is not required in order to use your XBox-Controller, just check out the guide in my sig, you will find an explanation.

I am currently not at home, so - you have to wait a little longer if you still want to use the binary...


- primetime34 - 2011-04-23

I want to make sure I understand....if I want to use the xbox 360 control I need to buy a separate receiver than the one I am currently using for my official microsoft v2 remote?


- HenryFord - 2011-04-24

uhm... what now? If you want to use a "XBox 360 wireless controller" you certainly have to - if not, you do not need a receiver for the controller.

However - the receiver of the remote will work only with the remote.