Home Forums PS2X PlayStation 2 Controller Library Support Forum Cant put analogue stick values into variable

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2099
    Anonymous
    Inactive

    for some reason when i use this piece of code

    Serial.println(ps2x.Analog(PSS_LY), DEC);

    lystick = (ps2x.Analog(PSS_LY), DEC);

    Serial.println(lystick);

    the first printed value coresponds to what the left stick is doing on the y axis but when i try to print the lystick variable value it comes out at 10 and never changes

    any idea what im doing wrong?

    #2111
    Bill
    Member

    lystick = (ps2x.Analog(PSS_LY), DEC);

    should be

    lystick = ps2x.Analog(PSS_LY);

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.