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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 25 26 27 28 29 ... 117 Next »

[Solved] XInput interface issue with minus axis value
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Solved] XInput interface issue with minus axis value
12-08-2013, 04:06 AM
#1
EmmanuelIstace
Unregistered
 
Hi,

I'm currently working on a project, bascially an arduino based interface for 2 Nes pads, 2 Snes pads, 4 N64 pads and 4 GC pads.
To accomplish that, I'.. hum wait, the next schema will me more clear :

[Image: Architecture.png]


So basically, my arduino send me through serial the pads status, a little client on the pc read the serial port and give that to a Feeder. vJoy allow me to emulate XInput pads and I have an SDK allowing me to control them. So, once I have the pad status on the computer I just feed the vJoy virtual pad which relly on the standard XInput HAL and on the emulator just see it as a classical XInput device so he can use it.

This is working for Nestopia, Zsnes and Project64 and working approximatively fine for Dolphin.
The buttons are ok and he can read the axis but only the positives ones !


Let's take an example with the X axis.
Dolphin XInput plugin correctly detect the X+ and X-. On the X+ axis everything work fine. But on the X- axis there's a problem, if I send -1 or -100 it's the same result, the joystick is considered as totally "down", no graduation.

For the moment I've used a workaround by mapping 4 axis per stick and only using the positive part of them, that work fine. The problem is I have a maximum of 8 Axis and the GC pad have 10 axis, 4 for the stick, 4 for the c-stick and 2 for L and R...

So I'm wondering if it's a known issue and if there's some workaround ?

If not I'm planning to develop my own input plugin, I've downloaded the source code and start to figure how it work, but is there some documentation about it ? Is there's a specific interface I just need to implement and drop the dll with the implementation in a plugin folder ?

Thank you in advance for all your answers ! I'm a bit desesperate :'(

Grtz from Belgium
EIS


EDIT
A little precision, it's on Dolphin 4.0 x64 - Build 23/09/2013 @ 20:20:40 and I'm in Windows 8.1 X64
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Solved] XInput interface issue with minus axis value - EmmanuelIstace - 12-08-2013, 04:06 AM
RE: XInput interface issue with minus axis value - delroth - 12-08-2013, 05:42 AM
RE: XInput interface issue with minus axis value - EmmanuelIstace - 12-08-2013, 06:40 AM
RE: XInput interface issue with minus axis value - EmmanuelIstace - 12-08-2013, 07:37 AM
RE: [Solved] XInput interface issue with minus axis value - tidalwave41 - 02-17-2017, 01:25 AM

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


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode