From 9de0de4d3d32ab97226fa9868de1fa2290120429 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 26 Jul 2022 16:01:13 +0200 Subject: Do not relay on libevdev for button/axis names, an prepare for device specific names, and add reverse lookup functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamepad_construct_force_feedback_effect__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgamepad_construct_force_feedback_effect__.c') 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; -- cgit v1.2.3-70-g09d2