isolver / ioHub

A Python program, running as an independent process, that provides a 'proxy like' service for experiment runtimes ( psychopy ) and devices ( keyboard, mouse, parallel port, eye tracker, ... ).
19 stars 14 forks source link

Using ioHub to "communicate" with a "game controller" (pedal) in Psychopy #84

Open louroprata opened 5 years ago

louroprata commented 5 years ago

Hi

I am programming a “tracking” experiment using a foot pedal as a “mouse/joystick”. I am programming this on Psychopy.

The pedal is a “CH PRO PEDALS USB” (http://www.chproducts.com/Pro-Pedals-v13-d-716.html):

USB-Input Device

HID-compliant game controller:

Device HID\VID_068E&PID_00F2\6&a44f59e&0&0000 was configured. Driver Name: input.inf Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} Driver Date: 06/21/2006 Driver Version: 10.0.17134.1 Driver Provider: Microsoft Driver Section: HID_Raw_Inst.NT Driver Rank: 0xFF1003 Matching Device Id: HID_DEVICE_SYSTEM_GAME Outranked Drivers: input.inf:HID_DEVICE:00FF1005 Device Updated: false Parent Device: USB\VID_068E&PID_00F2\5&6de0d46&0&4

Basically it has 2 separate pedals that can be moved to provide x, y and also z coordinates. I only really need the y coordinates for my simple task. It is classified as a “Game controller” in my control panel. It can provide x, z and y coordinates when I test it through the devices section in the control panel.

I was suggested to try using ioHub to communicate with the pedal. However I am running with some problems as I am quite begginer on programming.
I have read that ioHUB has only been tested with some devices such as eye tracking and specific types of gaming devices.
I would be very grateful if anyone with greater knowledge of ioHub could let me know if this software has the potential to communicate with my pedal or whether this is likely to be hopeless due to issues of compatability...

Many thanks

Tiago

isolver commented 5 years ago

I only wrote support for controllers that use Microsoft XINPUT; so it is windows XP / 7 / 10 only. iohub does not support interfacing with generic hid game controllers. Thank you.

On Thu, Sep 6, 2018 at 7:12 AM louroprata notifications@github.com wrote:

Hi

I am programming a “tracking” experiment using a foot pedal as a “mouse/joystick”. I am programming this on Psychopy.

The pedal is a “CH PRO PEDALS USB” ( http://www.chproducts.com/Pro-Pedals-v13-d-716.html):

USB-Input Device

HID-compliant game controller:

Device HID\VID_068E&PID_00F2\6&a44f59e&0&0000 was configured. Driver Name: input.inf Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} Driver Date: 06/21/2006 Driver Version: 10.0.17134.1 Driver Provider: Microsoft Driver Section: HID_Raw_Inst.NT Driver Rank: 0xFF1003 Matching Device Id: HID_DEVICE_SYSTEM_GAME Outranked Drivers: input.inf:HID_DEVICE:00FF1005 Device Updated: false Parent Device: USB\VID_068E&PID_00F2\5&6de0d46&0&4

Basically it has 2 separate pedals that can be moved to provide x, y and also z coordinates. I only really need the y coordinates for my simple task. It is classified as a “Game controller” in my control panel. It can provide x, z and y coordinates when I test it through the devices section in the control panel.

I was suggested to try using ioHub to communicate with the pedal.

However I am running with some problems as I am quite begginer on programming. I have read that ioHUB has only been tested with some devices such as eye tracking and specific types of gaming devices. I would be very grateful if anyone with greater knowledge of ioHub could let me know if this software has the potential to communicate with my pedal or whether this is likely to be hopeless due to issues of compatability...

Many thanks

Tiago

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/isolver/ioHub/issues/84, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtkCiUDIQaFWkztQodlocEDcJxy6bEuks5uYQMsgaJpZM4WcuQR .

--

http://www.labhackers.com

Sol Simpson

LabHackers Inc. http://www.labhackers.com

Phone: +1-613-863-3860 Ext: 1111

louroprata commented 5 years ago

Many thanks for your quick response! Just to be sure, I understand that XINPUT is used for example by Xbox 360, but that it cannot be used by the game controller I have mentioned, isn't it?

Thanks