User Tools

Site Tools


t2:remapper_mask

remapper_mask


remapper_mask - Set remapper port mask

Description


void remapper_mask(uint8 portmask);

Configure which port(s) the loaded controller mapping should be applied.

Parameters


  • portmask: Bitmask of the ports that should be affected by the loaded controller mapping, accordingly table 1.
Table 1
#include <remapper.gph>
Bitmask Port
0x08 RMP_USB_A
0x10 RMP_USB_B
0x04 RMP_USB_C
0x20 RMP_USB_D
0x01 RMP_BT_A
0x02 RMP_BT_B

Return Value


No value is returned.

Examples


Example #1 remapper_mask() example

#include <remapper.gph>
 
init {
    // Set lefty stick layout
    remapper_swap(STICK_1_X, STICK_2_X);
    remapper_swap(STICK_1_Y, STICK_2_Y);
    // Only to the controller on Input-B
    remapper_mask(RMP_USB_B);
}

See Also

t2/remapper_mask.txt · Last modified: 2018/03/08 08:46 by J2Kbr