Quantcast
Channel: Steamworks - Documentation
Viewing all articles
Browse latest Browse all 9

Steamworks::ButtonHit

$
0
0
This function is used to tell if the button was pressed since the last call to ButtonHit.

Syntax

  • bool ButtonHit(const int controllerIndex, unsigned int button)

Parameters

  • controllerIndex: the controller to check. Currently controllers range from 0 to 7.
  • button: the button to check. Currently buttons range from 0 to 20.

Returns

Returns true if the specified button was pressed since the last call, otherwise false is returned.

Viewing all articles
Browse latest Browse all 9

Trending Articles