Go to the source code of this file.
Functions | |
char * | PSX_GetButtonName (unsigned short button, char *out, unsigned int out_len) |
Given a button bitmask, returns the name for the buttons that the bitmask reports activated. | |
char* PSX_GetButtonName | ( | unsigned short | button, |
char * | out, | ||
unsigned int | out_len | ||
) |
Given a button bitmask, returns the name for the buttons that the bitmask reports activated.
If more than one button is found in the bitmask, it is specified by the symbol & followed by the other button name and so on...
button | Button bitmask as returned by PSX_ReadPad() |
out | Pointer to a string, to which the button names will be output |
out_len | The maximum length of the string |