X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fpl_gun_ts.c;h=661792cc017a69a0fcefb3a83d9fbdc7735605de;hp=de7fe112cb2df0b2fdaf69b5f7c14fb2dc7ab4a4;hb=e4c83ca67cf7ad13db3995909605ce01ff915824;hpb=c65553d0cafc353daad3fdcc0aab63bb8427a809 diff --git a/frontend/pl_gun_ts.c b/frontend/pl_gun_ts.c index de7fe112..661792cc 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);