Header menu logo Mibo

GamepadButtonCode Module

Functions for translating between raylib's GamepadButton and Mibo's backend-neutral GamepadButtonCode.

raylib's GamepadButton enum uses "left face" for the D-pad cluster and "right face" for the action-button cluster (Xbox: Y/B/A/X). The Core codes abstract that naming so backends with different conventions (e.g. MonoGame / XNA) can map onto the same logical buttons.

Functions and values

Function or value Description

ofRaylibButton b

Full Usage: ofRaylibButton b

Parameters:
Returns: GamepadButtonCode

toRaylibButton b

Full Usage: toRaylibButton b

Parameters:
Returns: GamepadButton

Type something to start searching.