Example #1
0
static int init_joyport_ports(void)
{
    if (joyport_port_register(JOYPORT_3, &userport_joy_control_port_1) < 0) {
        return -1;
    }
    return joyport_port_register(JOYPORT_4, &userport_joy_control_port_2);
}
Example #2
0
File: cbm5x0.c Project: mp-lee/VICE
static int init_joyport_ports(void)
{
    if (joyport_port_register(JOYPORT_1, &control_port_1) < 0) {
        return -1;
    }
    return joyport_port_register(JOYPORT_2, &control_port_2);
}
Example #3
0
static int init_joyport_ports(void)
{
    if (joyport_port_register(JOYPORT_1, &control_port_1) < 0) {
        return -1;
    }
    if (joyport_port_register(JOYPORT_3, &userport_joy_control_port_1) < 0) {
        return -1;
    }
    if (joyport_port_register(JOYPORT_4, &userport_joy_control_port_2) < 0) {
        return -1;
    }
    if (joyport_port_register(JOYPORT_5, &sidcard_port) < 0) {
        return -1;
    }
    return joyport_port_register(JOYPORT_2, &control_port_2);
}