aboutsummaryrefslogtreecommitdiff
path: root/frontend/pl_gun_ts.c
diff options
context:
space:
mode:
authornotaz2012-11-13 19:19:36 +0200
committernotaz2012-11-18 01:40:00 +0200
commite4c83ca67cf7ad13db3995909605ce01ff915824 (patch)
tree58f361fada24be7fa23f402b7eedb012326b90a3 /frontend/pl_gun_ts.c
parentc65553d0cafc353daad3fdcc0aab63bb8427a809 (diff)
downloadpcsx_rearmed-e4c83ca67cf7ad13db3995909605ce01ff915824.tar.gz
pcsx_rearmed-e4c83ca67cf7ad13db3995909605ce01ff915824.tar.bz2
pcsx_rearmed-e4c83ca67cf7ad13db3995909605ce01ff915824.zip
fix gun handling in enhancement mode
Diffstat (limited to 'frontend/pl_gun_ts.c')
-rw-r--r--frontend/pl_gun_ts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/pl_gun_ts.c b/frontend/pl_gun_ts.c
index de7fe11..661792c 100644
--- a/frontend/pl_gun_ts.c
+++ b/frontend/pl_gun_ts.c
@@ -15,7 +15,7 @@
#include "plugin_lib.h"
#include "pl_gun_ts.h"
#include "menu.h"
-#include "../plugins/dfinput/main.h"
+#include "../plugins/dfinput/externals.h"
static int gun_x, gun_y, gun_in;
static int ts_multiplier_x, ts_multiplier_y, ts_offs_x, ts_offs_y;
@@ -61,6 +61,7 @@ int pl_gun_ts_update_raw(struct tsdev *ts, int *x, int *y, int *p)
return 0;
}
+/* returns x, y in range 0..1023 (normalized to visible layer) */
void pl_gun_ts_update(struct tsdev *ts, int *x, int *y, int *in)
{
pl_gun_ts_update_raw(ts, NULL, NULL, NULL);