From b3ba1a0f84a048e781d09e70986048ff23df9f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludwig=20Fr=C3=BChsch=C3=BCtz?= Date: Wed, 7 Apr 2021 19:46:29 +0000 Subject: [PATCH] Updated usage part of readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2afb289..c72b6e0 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ This adds a new listener for a OSC address pattern, only OSC messages with a exi #define OSC_TYPE_COLOR 1024 #define OSC_TYPE_ALL UINT_MAX //=0xffffffff ``` -Add listener from AHK script: +Add a listener from the AHK script: ``` ; just for convenience, you also could use the "magic numbers" directly global oscTypeInt := 2 @@ -101,6 +101,7 @@ msghandlerTest1(oscType, data, msgID, hwnd) } } ``` +Note that you may add many listeners, for any combination of the same/different OSC addresses, datatypes and system message IDs. Also, in AutoHotkey you may add multiple callback functions for the same system message ID or multiple system message IDs to the same callback function. This creates a big flexibility but to keep it less clutterd, such multiple routing paths should be avoided where possible. #### Remove listener Of course, listeners also can be removed in a similar way: