Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   logitech f310 d-pad (http://www.chiefdelphi.com/forums/showthread.php?t=105315)

swapnil94 02-04-2012 01:17

logitech f310 d-pad
 
Is d-pad for logitech f310 programmed as a joystick or buttons? In the c++ reference I can't find anything that be used to program d-pad.

Alan Anderson 02-04-2012 09:37

Re: logitech f310 d-pad
 
I think the simplest way to find out what axis and button numbers correspond to the controls on a joystick or gamepad is to hook it up and see what you get. In LabVIEW, it's as easy as creating an indicator on the Axes and Buttons outputs of the Joystick Get vi. In C++, you'll want code to continuously display all the axis and button values.

In my experience, the d-pad typically shows up on joystick axes 5 and 6.

DjScribbles 02-04-2012 10:34

Re: logitech f310 d-pad
 
It may fall under the same umbrella as the POV hat on most flight stick style joysticks; however, I don't know if the Joystick class has the POV hat, since we don't use ours :)

cgmv123 02-04-2012 16:16

Re: logitech f310 d-pad
 
Quote:

Originally Posted by DjScribbles (Post 1152830)
I don't know if the Joystick class has the POV hat, since we don't use ours :)

It doesn't, but our XBox controllers read the point of view hat as a single axis with 3 values, -1.0, 0, 1.0. It's only vertical, no horizontal.

Alexander Meyer 03-04-2012 16:34

Re: logitech f310 d-pad
 
Quote:

Originally Posted by Alan Anderson (Post 1152812)
In my experience, the d-pad typically shows up on joystick axes 5 and 6.

This is how the F310 behaves as well.


All times are GMT -5. The time now is 17:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi