I've been thinking it would be great if people could try it out now in it's early stage and offer input in specific aspects of the library, and also possibly create device descriptions strings for any HID devices they might own (I've created 3 so far for Playstation 3 Controller, Nintendo Wiimote, and a Playstation 2 to USB Adapter).
Currently I'm trying to settle on a system for parsing the bytes coming in from the device that's being polled.
it would be nice to have a property in this library that can be set to a something like a formula that will then be used to post messages back to the LC engine based on the values of incoming bytes. I was thinking a script would set this parsing by passing a string with a blank space as the byte delimiter, a keyword for the type of processing (ignore byte, per bit, decimal value based) followed by a : colon sub-delimiter and then some token(s) for processing the byte with = as another delimiter followed by the message string to post back to the engine corresponding to that token/value...
I've started creating this system and already created device profiles for the devices I mentioned.
The system I currently have setup looks something like this
Code: Select all
-- Data Dscription looks something like this:
ignore bitArray=B8,B7,B5,ignore,Nyble:Dpad Zaxis=SignedInteger
Code: Select all
on Zaxis pZaxisValue
put pZaxisValue into fld "Depth"
end Zaxis
on doButtonOn pButtonName
if pButtonName = "B8" then send "MouseUp" to btn "B8"
end doButtonOn
on Dpad pNybleValue
if pNybleValue = "5" then send "MouseUp" to btn "DpadDown"
end Dpad
Here is the latest demo video I made today that actually shows what I'm talking about in action:
https://www.youtube.com/watch?v=UElNxSq7r9k
Thoughts? Suggestions? Names for the Data Description property?