fork/m-overlay
git clone https://git.julia.blue/fork/m-overlay
0cbdc40
settings-overhaul
1-- Super Smash Bros. Melee (NTSC v1.0) / Dairantou Smash Brothers DX (Japan v1.0) 2 3local game ={ 4memorymap ={} 5} 6 7local controllers ={ 8[ 1 ] =0x804BFE2C + 0x44 * 0 , 9[ 2 ] =0x804BFE2C + 0x44 * 1 , 10[ 3 ] =0x804BFE2C + 0x44 * 2 , 11[ 4 ] =0x804BFE2C + 0x44 * 3 , 12} 13 14local controller_struct ={ 15[ 0x00 ] ={ type ="u32" , name ="controller.%d.buttons.pressed" } , 16[ 0x04 ] ={ type ="u32" , name ="controller.%d.buttons.pressed_previous" } , 17[ 0x08 ] ={ type ="u32" , name ="controller.%d.buttons.instant" } , 18[ 0x10 ] ={ type ="u32" , name ="controller.%d.buttons.released" } , 19[ 0x1C ] ={ type ="u8" , name ="controller.%d.analog.byte.l" } , 20[ 0x1D ] ={ type ="u8" , name ="controller.%d.analog.byte.r" } , 21[ 0x20 ] ={ type ="float" , name ="controller.%d.joystick.x" } , 22[ 0x24 ] ={ type ="float" , name ="controller.%d.joystick.y" } , 23[ 0x28 ] ={ type ="float" , name ="controller.%d.cstick.x" } , 24[ 0x2C ] ={ type ="float" , name ="controller.%d.cstick.y" } , 25[ 0x30 ] ={ type ="float" , name ="controller.%d.analog.l" } , 26[ 0x34 ] ={ type ="float" , name ="controller.%d.analog.r" } , 27[ 0x41 ] ={ type ="u8" , name ="controller.%d.plugged" } , 28} 29 30for port , address in ipairs ( controllers ) do 31for offset , info in pairs ( controller_struct ) do 32game . memorymap [ address + offset ] ={ 33type =info . type , 34debug =info . debug , 35name =info . name : format ( port ), 36} 37end 38end 39 40function game . translateAxis ( x , y ) 41return x , y 42end 43 44function game . translateTriggers ( l , r ) 45return l , r 46end 47 48return game