-
I'm looking at the ioports and trying to figure out how to get the Host input device item token for each input. For example, if I have an input token like
So that will print out an input sequence like The only way I can think of to accomplish this is iterating through the
Then I would use this hashmap to find the token value from an input sequence. But I don't know if that would be reliable. And I know Windows does weird things with device classes like detecting multiple HID Keyboards that you would have to iterate through that have item tokens like Is there a relationship in the API between input sequences and device input class items? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ah I found it. |
Beta Was this translation helpful? Give feedback.
-
Input sequence objects are considered opaque from the Lua API.
The included Autofire and Input Macro plugins do various things with input sequences. |
Beta Was this translation helpful? Give feedback.
Ah I found it.
input:seq_to_tokens(seq)
. I dunno how I missed that. Must have looked right past in the docs like 20 times.