switch (psxkey1){
case DKEY_CROSS:
in_state_gun |= SACTION_GUN_A;
- break;
+ break;
case DKEY_CIRCLE:
in_state_gun |= SACTION_GUN_B;
- break;
+ break;
case DKEY_TRIANGLE:
in_state_gun |= SACTION_GUN_TRIGGER2;
- break;
+ break;
case DKEY_SQUARE:
in_state_gun |= SACTION_GUN_TRIGGER;
- break;
+ break;
}
}else if (type == 2) {
switch (psxkey1){
case DKEY_CROSS:
in_state_gun &= ~SACTION_GUN_A;
- break;
+ break;
case DKEY_CIRCLE:
in_state_gun &= ~SACTION_GUN_B;
- break;
+ break;
case DKEY_TRIANGLE:
in_state_gun &= ~SACTION_GUN_TRIGGER2;
- break;
+ break;
case DKEY_SQUARE:
in_state_gun &= ~SACTION_GUN_TRIGGER;
- break;
+ break;
}
}
}else{
in_a1[1] = 255;
break;
}
- }
+ }
}
else if (type == 2) {
if (psxkey1 >= 0)
}
}
emu_set_action(SACTION_NONE);
- }
+ }
}
}
}
fclose(pFile);
}
-
+
switch (in_type1){
case PSE_PAD_TYPE_GUNCON:
memset(cornerActions, 0, sizeof(cornerActions));
break;
case PSE_PAD_TYPE_ANALOGPAD:
printf("Controller set to analog (SCPH-1150)\n");
- break;
+ break;
}
if (in_enable_vibration)
if (bKeepDisplayOn){
if (pthread_create(&display_thread, NULL, displayThread, NULL))
- printf("Failed to create display thread.\n");
+ printf("Failed to create display thread.\n");
}
pl_rearmed_cbs.only_16bpp = 1;
{
}
-void plat_trigger_vibrate(int is_strong)
+void plat_trigger_vibrate(int pad, int low, int high)
{
const int vDuration = 10;
"req_start_manual_vibration");
if (msg) {
dbus_message_iter_init_append(msg, &args);
- int speed = is_strong ? 200 : 150;
+ // FIXME: somebody with hardware should tune this
+ int speed = high; // is_strong ? 200 : 150;
int duration = vDuration;
if (dbus_message_iter_append_basic(&args, DBUS_TYPE_INT32, &speed)) {
if (dbus_message_iter_append_basic(&args, DBUS_TYPE_INT32, &duration)) {