Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - charisma_ts

Pages: [1]
1
Window / Re: Problem with Button pressed
« on: November 17, 2017, 01:17:56 pm »
Cool thanks that worked for me.

2
Window / Re: Problem with Button pressed
« on: November 17, 2017, 10:35:52 am »
Because button was pressed for multiple "ticks". If you wanna handle event - handle sf::Event. Or implement own class kinda

newState = sf::Joystick::isButtonPressed

if (oldState != newState && newState) isPressed = true;
else isPressed = false;

oldState = newState
 
what is the value for oldState initially?

3
Window / Problem with Button pressed
« on: November 17, 2017, 07:09:30 am »
Hi, I want to detect when the joystick button was pressed. But, I have a problem that once a button is pressed, the button was detected to be pressed always. I used only once in the if statement sf::Joystick::isButtonPressed() but the debug message says button was pressed all the time.
I attached my screenshot of the program. What could cause it? and how to solve this.

4
Window / Re: Problem with Joystick Axis
« on: November 16, 2017, 07:14:49 am »
if (sf::Joystick::getAxisPosition(joyID, joyAxis) >  GAMEPAD_THRESHOLD)
What is the value of GAMEPAD_THRESHOLD?

5
Window / Re: Problem with Joystick Axis
« on: November 15, 2017, 10:29:09 pm »
I want only to detect movement when the analog button is moved. How can I do that?

6
Window / Problem with Joystick Axis
« on: November 15, 2017, 10:12:55 pm »
Hi I am just beginning with SFML. I try to detect axis position for x and y in joystick. I do not press any button but the value x and y axis are not equal to 0. What could make this happen?
I attached my screenshot of the program.

Pages: [1]
anything