#include "plugin_lib.h"
#include "pl_gun_ts.h"
#include "menu.h"
-#include "../plugins/dfinput/externals.h"
-#include "../plugins/dfinput/main.h"
#ifdef MAEMO
#define N900_TSMAX_X 4096
gun_y = (sy - ts_offs_y) * ts_multiplier_y >> 10;
limit(gun_x, 0, 1023);
limit(gun_y, 0, 1023);
- if (sp && !(g_opts & OPT_TSGUN_NOTRIGGER))
- gun_in |= GUNIN_TRIGGER;
+ if (sp)
+ gun_in |= 1;
else
- gun_in &= ~GUNIN_TRIGGER;
+ gun_in &= ~1;
}
}
*x = gun_x;
*y = gun_y;
- *in = gun_in | in_state_gun;
+ *in = gun_in;
}
void pl_set_gun_rect(int x, int y, int w, int h)