ButtonStateListener

Description

A class that calls the delegate every update the button is in a certain state(when the state goes down, it will always call the downFunc every update until the switch states back to up).

Relationships

Members

none

Methods

  • Update(GamePadState padState)
    • check what state the Button is in through padState, then call the delegate that corrensponds to the state
  • ButtonStateListener(Buttons buttonToCheck, ButtonEvent upFunc, ButtonEvent downFunc):base(buttonToCheck, upFunc, downFunc)
    • Constructor that accepts a button, what happens when the button is up and what happens when the button is pressed
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License