I found the solution, I write this for someone who have same issue.

I edited config files like below and it worked!

\RECALBOX\share\system\configs\moonlight (SMB)

gamecontrollerdb.txt - Duplicate and rename it ex)gamecontrollerdb_fixed.txt , Edit button number to what you got in SDL2 Gamepad Tool (http://www.generalarcade.com/gamepadtool/)

0500000049190000020400001b010000,ipega media gamepad controller,platform:Linux,b:b1,righty:a3,rightx:a2,a:b0,x:b3,righttrigger:b9,rightstick:b14,leftshoulder:b6,dpup:h0.1,start:b11,dpdown:h0.4,rightshoulder:b7,dpright:h0.2,lefttrigger:b8,leftstick:b13,y:b4,lefty:a1,leftx:a0,back:b10,dpleft:h0.8,

moonlight.conf - Uncomment mapping and write the path of edited gamecontrollerdb

## Default used mapping for streaming ## Searched for in $XDG_DATA_DIRS/moonlight or /usr/share/moonlight and /usr/local/share/moonlight ## Mapping can also be user overrided in $XDG_CONFIG_DIR/moonlight or ~/.config/moonlight or current directory mapping = /recalbox/share/system/configs/moonlight/gamecontrollerdb_fixed.txt