Page 1 of 1

Restrict XMBC to a single device?

Posted: Thu Oct 28, 2021 11:44 am
by askvictor
XMBC Version: 2.19.2
Windows Version: 10

Is it possible to make XMBC only work on a certain device/mouse? On my laptop I'd like for it to be active on my trackball (when it's connected), but when it's disconnected (i.e. laptop mode), have the touchpad (or another mouse if I'm using one) not use any XBMC modifiers.

Cheers,

Re: Restrict XMBC to a single device?

Posted: Fri Oct 29, 2021 9:45 am
by phil
Sorry no that is not possible. XMBC uses Windows mouse hooks that are device independent and provide no information on the source of the messages. More detail in the FAQ "I have more than one mouse/trackball on my system; Does XMBC have the capability to distinguish between different mice?"

Re: Restrict XMBC to a single device?

Posted: Tue Nov 09, 2021 11:25 pm
by askvictor
OK thanks. I've ended up making an EventGhost configuration that detects when a particular mouse is plugged or unplugged, and starts or kills XMBC accordingly (is there are cleaner way to do this than just kill the XMBC process?). Though come to think of it, this should be possible to implement within XMBC - detect the plug/unplug events, and activate/deactivate things accordingly? It still wouldn't be able to distinguish between different events from different devices, but would be useful to me anyway :)

Re: Restrict XMBC to a single device?

Posted: Tue Nov 09, 2021 11:51 pm
by phil
You can use command line arguments with XMBC ... Just run (from the command line) XMouseButtonControl.exe /? for a list but you can disable/enable it or exit it gracefully.

And yes, I could probably monitor USB events like eventghost does (I use eventghost a lot myself although mostly on the server for X10/homebrew Homecontrol type stuff)...

... But its a completely new concept for me coding wise and I've no idea how simple/difficult it would be to build in... Given I haven't had the time to release an update to XMBC for near on two years now, please don't expect anything advanced like that quickly (there's plenty of things to do before I can think about that - I have lots of open bugs and lots of open new features that are actually more closely related to the core XMBC functionality). Not saying it will never happen, but I don't want to get your hopes up :)

Re: Restrict XMBC to a single device?

Posted: Wed Nov 10, 2021 8:07 am
by askvictor
Thanks for the reply; I totally understand how it goes, and not expecting anything. And thanks for an awesome program!