diff options
author | notaz | 2011-10-28 02:31:57 +0300 |
---|---|---|
committer | notaz | 2011-10-30 23:48:09 +0200 |
commit | faf2b2aae80c811f778f7cfa9a320dd7ade01dac (patch) | |
tree | 525fd32469925afccdde71517dd04a9722dc4d5d /frontend/plugin_lib.c | |
parent | f2de172b46a4948242a53b4b7c24f9fc151c19b5 (diff) | |
download | pcsx_rearmed-faf2b2aae80c811f778f7cfa9a320dd7ade01dac.tar.gz pcsx_rearmed-faf2b2aae80c811f778f7cfa9a320dd7ade01dac.tar.bz2 pcsx_rearmed-faf2b2aae80c811f778f7cfa9a320dd7ade01dac.zip |
frontend: add touchscreen-as-buttons input code
intended for Caanoo/Wiz
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r-- | frontend/plugin_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 084ff1e..0e69743 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -33,7 +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 pl_flip_cnt; -static void *ts; +void *tsdev; void *pl_vout_buf; static int pl_vout_w, pl_vout_h, pl_vout_bpp; static int vsync_cnt, flips_per_sec, tick_per_sec; @@ -248,8 +248,8 @@ static void update_input(void) void pl_update_gun(int *xn, int *xres, int *y, int *in) { - if (ts) - pl_gun_ts_update(ts, xn, y, in); + if (tsdev) + pl_gun_ts_update(tsdev, xn, y, in); *xres = pl_vout_w; *y = *y * pl_vout_h >> 10; @@ -473,5 +473,5 @@ void pl_init(void) pl_vout_w = pl_vout_h = 256; pl_vout_bpp = 16; - ts = pl_gun_ts_init(); + tsdev = pl_gun_ts_init(); } |