diff options
author | Johannes Bensmann <johannesbensmann@gmx.de> | 2019-06-19 18:19:50 +0200 |
---|---|---|
committer | Johannes Bensmann <johannesbensmann@gmx.de> | 2019-06-19 18:19:50 +0200 |
commit | bd911fb6c47660de3e87a2553ade5abc3ae3716f (patch) | |
tree | 6faa500bb02698d9ebb5bffc30f82f66ae776324 | |
parent | 96fcc4c27c89f6f531af40426d768184dd0eb58a (diff) |
changed move bindings
-rw-r--r-- | config.h | 7 | ||||
-rw-r--r-- | xmouseless.c | 4 |
2 files changed, 4 insertions, 7 deletions
@@ -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; |