If anyone wants to use a controller for a mouse on Raspberry Pi you can install this:
xserver-xorg-input-joystick
It saved me time rather than trying to configure joy2key.
@Kimiko_0 It's simple enough if you just need to move a pointer and click. I hear that other people have problems making it do the things. :3