From 0ea6117af9f9fe332f1481c29883548f2424ff68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Reuh=20Fildadut?= Date: Tue, 11 Oct 2022 14:53:07 +0900 Subject: [PATCH] input: add :set method --- input/input.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input/input.lua b/input/input.lua index 0876888..aef5a98 100644 --- a/input/input.lua +++ b/input/input.lua @@ -724,6 +724,10 @@ input_mt = { c:neutralize() end end, + --- Manually set the state of this input. + set = function(self, ...) + self:_update{...} + end, --- Set the joystick associated with this input. -- This input will then ignore every other joystick.