![]() |
Regarding getPOV()
I know the POV has to do with the directional-pad- on a gamepad, but what is the API in terms of using it?
And more importantly, how may I run commands based on POV input? |
Re: Regarding getPOV()
Here's the API:
Quote:
|
Re: Regarding getPOV()
So, if I wanted to get the value of left on the directional-pad, what value must i check for?
|
Re: Regarding getPOV()
This is something I've been wondering too. Did this method exist prior to 2015? Because I seem to recall that we had to use the getAxis() method before.
|
Re: Regarding getPOV()
Quote:
|
Re: Regarding getPOV()
It should return -1 - 7, with -1 being nothing pressed, 0 being top, 1 being top right, 2 being right, and progressing clockwise to 7 in top left.
|
Re: Regarding getPOV()
Quote:
|
Re: Regarding getPOV()
Quote:
When I was trying to get a map of the button and axis numbers yesterday, I found that the dPad wasn't an axis or a button and the triggers were now separate axes. In the past, both triggers had been considered 1 axis, and one added to a value and the other decremented it. In the past, we've used axis for the dPad, but it only worked left and right. Here's hoping this new implementation will work for up and down too. When I saw the dPad didn't work, I assumed it just didn't work, I didn't try getPOV(), because I don't know what a POV was. I'll see if i can figure it out tomorrow! |
Re: Regarding getPOV()
Quote:
|
Re: Regarding getPOV()
Quote:
I should probably take a better look at the tools available to me before I solve a problem next time. And I'll examine that tomorrow as well. Thanks! |
Re: Regarding getPOV()
Quote:
|
Re: Regarding getPOV()
On the x-box controller, the dpad is a "POV". It functions exactly how the doc says using the method call which does not require an argument. up is 0, right is 90, down is 180, left is 270, and if its unpressed, its -1. You do get the 45 degree intervals between those I listed as well.
|
| All times are GMT -5. The time now is 10:43. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi