From a59eee489318d406497eb5fb8a95d7e23d5eee1f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Sep 2012 02:20:25 +0200 Subject: commands: remove third parameter for "switch" This could change the direction (i.e. invoke STEP_PROPERTY_DOWN), but you can just pass a negative value as second argument instead. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index abaa6fd7bd..10747b0891 100644 --- a/input/input.c +++ b/input/input.c @@ -136,7 +136,7 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_KEYDOWN_EVENTS, "key_down_event", { ARG_INT } }, { MP_CMD_SET, "set", { ARG_STRING, ARG_STRING } }, { MP_CMD_GET_PROPERTY, "get_property", { ARG_STRING } }, - { MP_CMD_SWITCH, "switch", { ARG_STRING, OARG_FLOAT(0), OARG_INT(0) } }, + { MP_CMD_SWITCH, "switch", { ARG_STRING, OARG_FLOAT(0) } }, { MP_CMD_SET_MOUSE_POS, "set_mouse_pos", { ARG_INT, ARG_INT } }, -- cgit v1.2.3