btstate
r_timestamp(&action0, &r->btstate, &r->e3b, &r->drift);
r_map(&action, &action2, &r->btstate);
r_click(&action2, &r->btstate);
if ((r->btstate.zmap[0] > 0) && (action.dz != 0)) {
r_map(&action, &action2, &r->btstate);
r_click(&action2, &r->btstate);
r_init_buttons(struct quirks *q, struct btstate *bt, struct e3bstate *e3b)
*bt = (struct btstate) {
r_init_buttons(q, &r->btstate, &r->e3b);
r_timestamp(act, &r->btstate, &r->e3b, &r->drift);
r_click(&newaction, &r->btstate);
r_timestamp(&newaction, &r->btstate, &r->e3b, &r->drift);
r_click(&newaction, &r->btstate);
r_timestamp(a2, &r->btstate, e3b, &r->drift);
r_installmap(char *arg, struct btstate *bt)
r_installzmap(char **argv, int argc, int* idx, struct btstate *bt)
r_map(mousestatus_t *act1, mousestatus_t *act2, struct btstate *bt)
r_timestamp(mousestatus_t *act, struct btstate *bt, struct e3bstate *e3b,
r_click(mousestatus_t *act, struct btstate *bt)
struct btstate btstate; /* button status */
static struct btstate opt_btstate;
static bool r_installmap(char *arg, struct btstate *bt);
static char * r_installzmap(char **argv, int argc, int* idx, struct btstate *bt);
struct btstate *bt);
static void r_timestamp(mousestatus_t *act, struct btstate *bt,
static void r_click(mousestatus_t *act, struct btstate *bt);