Maschell / dynamic_libs

21 stars 5 forks source link

Add more VPAD functions #23

Closed Crayon2000 closed 6 years ago

Crayon2000 commented 6 years ago

Added VPADDisableLStickZeroClamp, VPADDisableRStickZeroClamp, VPADEnableLStickZeroClamp, VPADEnableRStickZeroClamp, VPADSetCrossStickEmulationParamsL, VPADSetCrossStickEmulationParamsR, VPADGetCrossStickEmulationParamsL, VPADGetCrossStickEmulationParamsR, VPADControlMotor and VPADStopMotor.

Here is an example of how to use the VPADControlMotor function:

u8 motorpattern[] = {0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0};
VPADControlMotor(0, motorpattern, sizeof(motorpattern));

Vibration is fun lol