notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add vibration support for Caanoo
[pcsx_rearmed.git]
/
frontend
/
plugin_lib.c
diff --git
a/frontend/plugin_lib.c
b/frontend/plugin_lib.c
index
e93c12f
..
98d7e11
100644
(file)
--- a/
frontend/plugin_lib.c
+++ b/
frontend/plugin_lib.c
@@
-33,6
+33,7
@@
int in_type1, in_type2;
int in_a1[2] = { 127, 127 }, in_a2[2] = { 127, 127 };
int in_keystate, in_state_gun;
int in_type1, in_type2;
int in_a1[2] = { 127, 127 }, in_a2[2] = { 127, 127 };
int in_keystate, in_state_gun;
+int in_enable_vibration;
int pl_flip_cnt;
void *tsdev;
void *pl_vout_buf;
int pl_flip_cnt;
void *tsdev;
void *pl_vout_buf;
@@
-476,6
+477,7
@@
void pl_start_watchdog(void)
void pl_init(void)
{
extern unsigned int hSyncCount; // from psxcounters
void pl_init(void)
{
extern unsigned int hSyncCount; // from psxcounters
+ extern unsigned int frame_counter;
pl_vout_w = pl_vout_h = 256;
pl_vout_bpp = 16;
pl_vout_w = pl_vout_h = 256;
pl_vout_bpp = 16;
@@
-483,4
+485,5
@@
void pl_init(void)
tsdev = pl_gun_ts_init();
pl_rearmed_cbs.gpu_hcnt = &hSyncCount;
tsdev = pl_gun_ts_init();
pl_rearmed_cbs.gpu_hcnt = &hSyncCount;
+ pl_rearmed_cbs.gpu_frame_count = &frame_counter;
}
}