Files
AM2R-Community-Updates/scripts/map_kbkey.gml
2020-12-22 20:54:55 -06:00

18 lines
878 B
Plaintext

/// map_kbkey(key_index)
// This might have been a switch() block originally.
if (argument0 == 0) global.opkeybtn_up = argument1;
if (argument0 == 1) global.opkeybtn_down = argument1;
if (argument0 == 2) global.opkeybtn_left = argument1;
if (argument0 == 3) global.opkeybtn_right = argument1;
if (argument0 == 4) global.opkeybtn_a = argument1;
if (argument0 == 5) global.opkeybtn_b = argument1;
if (argument0 == 6) global.opkeybtn_l = argument1;
if (argument0 == 7) global.opkeybtn_l2 = argument1;
if (argument0 == 8) global.opkeybtn_r2 = argument1;
if (argument0 == 9) global.opkeybtn_x = argument1;
if (argument0 == 10) global.opkeybtn_r = argument1;
if (argument0 == 11) global.opkeybtn_select = argument1;
if (argument0 == 12) global.opkeybtn_start = argument1;
if (argument0 == 13) global.opkeybtn_menu1 = argument1;
if (argument0 == 14) global.opkeybtn_menu2 = argument1;