RPCS3 Forums

Full Version: Shanwan Ps3 Controller Clone under linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi folks, 
I've a couple of Shanwan Ps3 Controller clone under linux. In bluetooth it was recognized as PS3Controller in rpcs3. It works but when i try to customize buttons i see that it was badly assigned. Default config doesn't work for buttons (only for pads). 
Tried to customize with a,b,x,y combination, Square, Circle, Triangle, Cross combination, no way.

So opening evtest and selecting correct device, buttons respond to :

300 triangle
301 Circle
302 Cross
303 Square

EDIT : square button respond to DEAD so it works
EDIT : if i press cross or otcircle or triangle error is : evdev: Evdev button (NULLSTR) (302) is unknown. Please add it to the button list.

How i can map in yml file? 
Thanks a lot
Dario
If i try to make a custom mapping yml and i put 

Cross: 302
Circle: 301
Triangle: 300
It doesn't work.

Please someone can help me ?
thanks
Dario

If i try to map via rpcs3 it give me : 
square : dead
cross : ry-
triangle : ry - 
Circle : ry- 

What can i do ?
Dario
Exactely rpcs3 tell me evdev button unknow (301) please add it to button list ! Please, where is button list ???
can you plz tell me where is the config yml file
iam using the appimage in ubunto and cant find the file
(03-04-2020, 08:02 PM)ehabtanta Wrote: [ -> ]can you plz tell me where is the config yml file
iam using the appimage in ubunto and cant find the file

Under .config/rpcs3
Please no one can help me? It's lot of time that i need to solve this issue for my children...
Thanks
Dario

evdev: Evdev button (NULLSTR) (302) is unknown. Please add it to the button list.

Where is button_list ?

case EV_KEY:
{
m_is_button_or_trigger = true;

// get the button value and return its code
if (button_list.find(code) == button_list.end())
{
evdev_log.error("Evdev button %s (%d) is unknown. Please add it to the button list.", libevdev_event_code_get_name(EV_KEY, code), code);
return -1;
}

value = val > 0 ? 255 : 0;
return code;
}