keyboard |
|
My keyboard lib. Capable of forwarding keys. [More] |
To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Konlet.keyboard##version=5 Emulator users, in the BYOND pager go to File | Open Location and enter this URL:byond://Konlet.keyboard##version=5 |
Uh, there's a demo in this. If you have any questions or feature requests, leave a comment.
Thanks to Kaiochao for minor improvements. Updated 8/23/2016. -Added Gamepad Support. |
Konlet: (Nov 2 2015, 11:19 am)
Alright, my stubbornness knows bounds. I updated it to be compatible, and now when using it as a library the demo file isn't included.
Kaiochao: (Nov 2 2015, 10:20 am)
It's a mistake that won't ruin projects by including the library since it's demo code.
However, because it's demo code that's meant to show people how to do something, it would be best to just fix the mistake. If someone were to copy your way of starting a game loop like this: // code to be included You don't want people using your code to have to worry about a situation like that. You don't have to force people to tiptoe around your library's shortcomings in any way. Just do this: world/New() Or this: world Or this: world Konlet: (Nov 2 2015, 6:39 am)
FKI wrote:
You probably want to spawn() that world loop so world/New() can finish. Or just put ..() or build the world before the for loop. FKI: (Nov 1 2015, 5:49 pm)
You probably want to spawn() that world loop so world/New() can finish.
Zecronious: (Nov 1 2015, 4:12 pm)
Solid library, very useful.
On a side note I usually like to use sleep(world.tick_lag) for the loops but that's just a personal preference. |
Copyright © 2024 BYOND Software.
All rights reserved.