|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#141 (permalink) |
|
Formerly NHervé
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
|
I noticed SDL only encapsulates WinMM apis for Win32. I'm thinking about writing a lib which would use UsbHidApi.dll, which makes HID communications simpler, to get a better plugin. I found the protocol of my joystick by using a UsbHidApi demo, from packet values. Here is the protocol of my joystick, Logitech Cordless Rumblepad 2 : Code:
Bit |Val|Expl. 0 |01 |REport ID 1 |80 |Left X (axis 1) 2 |7f |Left Y (axis 2) 3 |7f |Right X (axis 3) 4 |80 |Right Y (axis 4) 5 |08 |Hi : buttons 0-4, Lo : POV 6 |00 |Buttons 5-12 7 |02 |Mode : 02 : normal, 0a : reverse POV and left axis note : value can vary POV : 0 : up 1 : up-right 2 : right 3 : down-right 4 : down 5 : down-left 6 : left 7 : up-left 8 : centered
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
|
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#142 (permalink) |
|
Registered User
Join Date: Jan 2008
Location: /dev/random
Posts: 42
|
Hi. I'm really looking forward to your linux port ![]() I'm just another 'keyboard' guy, so please, could you just tell me if linux port will support keyboard bindings for analog controls ? Just curios, what was your 'fopen()' problem ? Last edited by rasta_freak; January 13th, 2008 at 19:25.. |
|
|
|
|
|
#143 (permalink) |
|
Formerly NHervé
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
|
yes, the linux port will support keyboard for analogs, each analog direction is considered as a button, with pressure info. I could not open my config file, but now it is solved.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
|
|
|
|
|
|
#144 (permalink) |
|
Registered User
Join Date: Jan 2008
Location: /dev/random
Posts: 42
|
Great ! BTW - about fopen() - don't be shy, I'm programmer myself ![]() Well, i guess you have better things to do than discuss that now... ![]() Anyway, I have some linux programming experience, so if you're stuck at any point, I'm offering my help too (have seen other "offers" themselves ).I'm not saying I will solve it, but maybe I could be of some help to someone
|
|
|
|
|
|
#147 (permalink) |
|
Registered User
![]() Join Date: Feb 2008
Location: USA
Posts: 93
|
so i got to the config screen but soon as i hit a button like X, or down or anything it immediatly fills it with Joy1_Axis3_Min. And no buttons on my controller will reg there???
__________________
Specs: Intel C2D E8200 @ 3.4GHz 4 GB ram @ 4,4,4 GTX 260 216 core Ubuntu 9.04/Windows 7 64 |
|
|
|
|
|
#154 (permalink) |
|
Registered User
Join Date: Mar 2008
Location: England
Posts: 1
|
I get an error message when I go to test. it says "Error 1746190400 while loading SDL". I have the SDL in the root directory and the megapad.dll and included folder in the plugins folder. Odd thing was it was working before, but I couldn't configure the analog stick properly. Any idea on what I'm doing wrong? |
|
|
|
|
|
#155 (permalink) |
|
Registered User
Join Date: Mar 2008
Location: uk
Posts: 19
|
OK i got MegaPad_ver1.3.3.zip but there's no SDL.dll file there!!!!!!!!!!!!!!!!!!!!!! OK, I got MegaPad_ver1.3.0.zip, placed SDL.dll in the main folder and so far it works great with my Tesun PS2 replica controller! Great plugin, thanks. It's fixed my controller lag problem in Resident evil code veronica which used to carry on shooting when I stopped pressing X and loads of other annoyances! Thanks again
Last edited by oli_ramsay; March 8th, 2008 at 20:47.. Reason: Automerged Doublepost |
|
|
|
|
|
#156 (permalink) | |
|
Registered User
Join Date: Mar 2008
Location: Atlanta, GA, USA, Earth.
Posts: 7
|
Quote:
|
|
|
|
|
|
|
#157 (permalink) |
|
Formerly NHervé
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2007
Location: Peach__'s castle
Posts: 712
|
The new version of Megapad, v1.4.0, will be entirely (or almost) rewritten and will feature native Wiimote support without GlovePIE. I don't know if it will still use SDL for normal joysticks, I think yes.
__________________
If you're wondering where Mario__ is, he is currently saving Peach__ once again.
|
|
|
|
|
|
#160 (permalink) |
|
Registered User
![]() Join Date: Feb 2007
Location: Bordeaux (France)
Posts: 51
|
on the zip don have sdl.dll well i have this fill but when i configure my pad, and i lunch game i have this F... crahs!! Last edited by Yassine; April 6th, 2008 at 19:21.. Reason: Automerged Doublepost |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|