aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_construct_force_feedback_effect__.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-26 16:01:13 +0200
committerMattias Andrée <maandree@kth.se>2022-07-26 16:02:05 +0200
commit9de0de4d3d32ab97226fa9868de1fa2290120429 (patch)
tree292473831841529716f97565391303fb9b071c15 /libgamepad_construct_force_feedback_effect__.c
parentUpdate information about Sixaxis (diff)
downloadlibgamepad-9de0de4d3d32ab97226fa9868de1fa2290120429.tar.gz
libgamepad-9de0de4d3d32ab97226fa9868de1fa2290120429.tar.bz2
libgamepad-9de0de4d3d32ab97226fa9868de1fa2290120429.tar.xz
Do not relay on libevdev for button/axis names, an prepare for device specific names, and add reverse lookup functions
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libgamepad_construct_force_feedback_effect__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgamepad_construct_force_feedback_effect__.c b/libgamepad_construct_force_feedback_effect__.c
index f84314d..5c99a13 100644
--- a/libgamepad_construct_force_feedback_effect__.c
+++ b/libgamepad_construct_force_feedback_effect__.c
@@ -13,7 +13,7 @@ libgamepad_construct_force_feedback_effect__(struct ff_effect *effectp, const st
memset(effectp, 0, sizeof(*effectp));
effectp->id = -1;
}
- direction += 0.5;
+ direction += (double)1 / 2;
fmod(direction, 1);
if (direction < 0)
direction = 1 - direction;