LinuxMCE Forums
June 19, 2013, 02:11:20 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: 1 ... 7 8 [9]
  Print  
Author Topic: MAME Plugin Progress Thread  (Read 30145 times)
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #120 on: July 30, 2008, 07:29:53 am »

Do any joysticks or gamepads currently work with LMCE? Aren't they just HID and so Linux will understand them (unless there is something very specific to one)?

Thom - in this case, if the interface already works, what does the template/device give us extra? Is it just so LMCE understands it exists, and perhaps how to use it in one room to control something in another? Wouldn't there have to be some code behind it, rather than just a device template? Just trying to understand how this all hangs together Smiley
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #121 on: July 30, 2008, 04:09:04 pm »

for certain joysticks, the device template can be used to provide a ctrlr file for mame, or other emulators to do joystick mappings. This is critical to the plug and play aspect of the system.

I had to make one for my X-Arcade Tank-stick, because it is insanely custom (it appears as an HID keyboard, and requires a custom controller file to work with MAME).

-Thom
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #122 on: July 30, 2008, 11:10:30 pm »

Thom - does that mean you had to write some code to turn it into a DCE device as well? Doesn't everything that has a template also have to be a device and be able to connect to the router and send/receive commands, events etc? Is that how you do the mapping, though a DCE command to send the mapping data? What device to you send it to?
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #123 on: July 31, 2008, 12:08:13 am »

no, if the device does not have implements dce checked, it is assumed to not be a dce device.

-Thom
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #124 on: July 31, 2008, 12:40:12 am »

ahhh.... hmm.... so how does LMCE use the data in the template? I presume it must be another device that uses it - is that the Orbiter device, and then that pipes the "mapped" commands to whatever device you are controlling at the time (in this case your MAME plugin device) or does the device itself have to take responsibility to grab the template data, and access the incoming HID data stream, translate and use it?
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #125 on: July 31, 2008, 12:44:18 am »

my mame_player device merely looks at the device, grabs its device data, and reconstitutes it into a controller file to use with mame.

-Thom
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #126 on: July 31, 2008, 12:50:37 am »

so in this instance the template isn't actually an "active" component in LMCE, its more a convenient and standard "parking" place to hold the controller's mapping data. The active bit is in other devices that want to use this data, actively looking for the template, grabbing the data then using it however they want?
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #127 on: July 31, 2008, 01:07:35 am »

correct. look at the mcr remote dongle and the go mouse 1005 dongle..same thing.

-Thom
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #128 on: July 31, 2008, 01:26:06 am »

ahhh, the light shines! Sorry for all the questions, desparately trying to understand the architecture of LMCE, learn C++ and Linux so I can actually start contributing rather than leaching Smiley
Logged
Pages: 1 ... 7 8 [9]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!