t2:port_permit_ffb

port_permit_ffb


port_permit_ffb - Enable FFB on a port

Description


void port_permit_ffb(uint8 port);

Enable Force Feedback (FFB - controller vibration) on the port specified by the argument.

While the script is loaded and running, this command overwrites the FFB settings configured by the user.

Parameters


  • port: An valid port identifier, accordingly table 1.
Table 1
Index Port Designator
1 PORT_USB_A
2 PORT_USB_B
0 PORT_USB_C
3 PORT_USB_D
4 PORT_BT_A
5 PORT_BT_B

Return Value


No value is returned.

Examples


Example #1 port_permit_ffb() example

init {
    // Enable FFB on all ports
    port_permit_ffb(PORT_USB_A);
    port_permit_ffb(PORT_USB_B);
    port_permit_ffb(PORT_USB_C);
    port_permit_ffb(PORT_USB_D);
    port_permit_ffb(PORT_BT_A);
    port_permit_ffb(PORT_BT_B);
}

See Also

t2/port_permit_ffb.txt · Last modified: 2017/03/26 06:59 by J2Kbr