From bd911fb6c47660de3e87a2553ade5abc3ae3716f Mon Sep 17 00:00:00 2001 From: Johannes Bensmann Date: Wed, 19 Jun 2019 18:19:50 +0200 Subject: changed move bindings --- config.h | 7 ++----- xmouseless.c | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index 49a671f..3c18ae3 100644 --- a/config.h +++ b/config.h @@ -13,16 +13,13 @@ static SpeedBindings speed_bindings[] = { { XK_Control_L, 10 }, }; +/* you can also add any other direction (e.g. diagonals) */ static MoveBinding move_bindings[] = { /* key x y */ { XK_j, -1, 0 }, { XK_l, 1, 0 }, { XK_i, 0, -1 }, - { XK_comma, 0, 1 }, - { XK_u, -1, -1 }, - { XK_o, 1, -1 }, - { XK_m, -1, 1 }, - { XK_period, 1, 1 }, + { XK_k, 0, 1 }, }; /* 1: left diff --git a/xmouseless.c b/xmouseless.c index ab0ba19..edb9f04 100644 --- a/xmouseless.c +++ b/xmouseless.c @@ -49,8 +49,8 @@ static unsigned int speed = default_speed; struct { float x; float y; - int speed_x; - int speed_y; + float speed_x; + float speed_y; } mouseinfo; -- cgit v1.2.3