• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 753 754 755 756 757 ... 1193 Next »

[GCPad] HID Caps for Rumble
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[GCPad] HID Caps for Rumble
05-18-2010, 06:43 PM
#1
TheKrokodil Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: May 2010
I'm trying to attach my Gamecube controller to my PC using an AVR and so far its working fine. The only task remaining is the rumble support - I can cause the controller to rumble via the AVR but have so far no Idea how to add it to the HID report.

What values do I need for rumble, .. in my HID report so that the GCPad Plugin will recognize it?
Find
Reply
05-19-2010, 12:47 AM
#2
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
I thought it was the driver that reads/writes the HID reports? The driver tells Dolphin that rumble capability is available. Dolphin does not read/write HID reports for the gamecube controllers.
Find
Reply
05-19-2010, 02:25 AM
#3
TheKrokodil Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: May 2010
Quote:PROGMEM char usbDescriptorHidReport[67] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x05, // USAGE (Game Pad)
0xa1, 0x01, // COLLECTION (Application)

0x09, 0x01, // USAGE (Pointer)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x06, // REPORT_COUNT (6)
0xa1, 0x00, // COLLECTION (Physical)
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x30, // USAGE (X)
0x09, 0x31, // USAGE (Y)
0x09, 0x33, // USAGE (Rx)
0x09, 0x34, // USAGE (Ry)
0x09, 0x36, // USAGE (Slider)
0x09, 0x35, // USAGE (Rz)
0x81, 0x02, // INPUT (Data,Var,Abs)
0xc0, // END_COLLECTION

0x05, 0x09, // USAGE_PAGE (Button)
0x19, 0x01, // USAGE_MINIMUM (Button 1)
0x29, 0x0e, // USAGE_MAXIMUM (Button 14)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x75, 0x01, // REPORT_SIZE (1)
0x95, 0x10, // REPORT_COUNT (16)
0x81, 0x02, // INPUT (Data,Var,Abs)

0x05, 0x08, // USAGE_PAGE (LEDs)
0x09, 0x18, // USAGE (Ring)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x01, // REPORT_COUNT (1)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x91, 0x02, // OUTPUT (Data,Var,Abs)
0xc0 // END_COLLECTION
};

Thats the HID report currently used by my device - I just cannot get the GCPad plugin to recognize any "output" device. Hmm..
Find
Reply
05-19-2010, 10:08 AM
#4
TheKrokodil Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: May 2010
Quote: 0xa1, 0x00, // COLLECTION (Physical)
0x05, 0x09, // USAGE_PAGE (LEDs)
0x09, 0x0F, // USAGE (Generic Indicator)
0x75, 0x08, // REPORT_SIZE (8)
0x95, 0x01, // REPORT_COUNT (1)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x92, 0x02, 0x01, // OUTPUT (Data,Var,Abs,Buf)
0xc0, // END_COLLECTION

Using that code and HID-Test I can easily write the appropriate byte in the output report and the controller will start to rumble; however, Dolphin just won't recognize the given output control - The list of possible Motor "sources" is just empty.

What is the easiest way to get Dolphin (or windows, for that matter) to recognize some sort of output-control @ joystick. What Usages[/quote]/Usagepages are required?
Find
Reply
05-19-2010, 11:09 AM
#5
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,661
Threads: 8
Joined: Feb 2010
You might have more luck in some other forum.
This is more of a Driver programming question.
Dolphin uses a Constant Force Feedback effect in DirectInput to make gamepads rumble.
It doesn't deal with HID reports of connected gamepads.
Find
Reply
05-19-2010, 06:26 PM
#6
TheKrokodil Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: May 2010
Yeah, looks that way :/

How does it come that Dolphin shows my Keyboard LED's as possible outputs for the rumble function? As far as I know, those shouldn't register as force-feedback devices ^^
Find
Reply
05-19-2010, 09:25 PM (This post was last modified: 05-19-2010, 09:26 PM by Billiard26.)
#7
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,661
Threads: 8
Joined: Feb 2010
(05-19-2010, 06:26 PM)TheKrokodil Wrote: Yeah, looks that way :/

How does it come that Dolphin shows my Keyboard LED's as possible outputs for the rumble function? As far as I know, those shouldn't register as force-feedback devices ^^

For gamepads it uses force feedback effects for outputs.
For keyboard it uses those 3 LEDs that I programmed in. :p
Find
Reply
05-19-2010, 10:27 PM
#8
TheKrokodil Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: May 2010
Well..solved it - Not the best way though.

I set the rumble feature to the SCROLL-LED and wrote a small 2nd app which forwards the state of the LED towards the HID output report. Not very elegant, but it works ^^
Find
Reply
01-21-2012, 05:39 PM
#9
Morgenman
Unregistered
 
Wink 
(05-19-2010, 10:27 PM)TheKrokodil Wrote: Well..solved it - Not the best way though.

I set the rumble feature to the SCROLL-LED and wrote a small 2nd app which forwards the state of the LED towards the HID output report. Not very elegant, but it works ^^

hello... i have been trying for a long time to get the rumble feature working ... no luck... Sad
i cannot seem to get dolphin to output anything... the capslock features are shown but the test does nothing to my lights
is there any way you can pm me the 2nd app you made?
cole
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread:



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode