Lua Player w/ IR Keyboard Built-In Functionality
Ive absolutly fallen in love with my IR Keyboard that came in the mail about 2 hours ago, and wanted to do something for it that would benefit alot of those who also have one. (mod TTLDE to use keyboard, mod Slasher's Windows V2 text editor to use it, etc.) Now, I know this can be done in Lua, but being an interpreted language, it's best to find the fastest route, and I'd say this would be it.
Anyways, Ive made a mod of Lua Player allowing you to very easily
integrate IR Keyboard input into your app/game. I havent released it yet, as Id like to know how you would like the API. As it stands, there are 2 new functions:
Im thinking of making an entire 'class' (what is it called in lua that is equivalent to a C++ class?) so itd end up looking like:
-- Initialize the IR port
-- Read in any supported key
-- returns the character entered, its that easy :-P
Id like some input before i release it :o
If you want, Ill post a sample script.