ButtonPressListener

Description

A class that checks to see if the Button has been pressed (when the state goes down 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
  • ButtonPressListener(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