I know there's already been a little discussion of the code Dan used in the video, but I wanted to take a look for myself and I might as well post about it anyway; so will probably be some repeated stuff here.
It looks for certain that those 'devices' from the fake bios loading screen are in fact real. He used a GPU, keyboard and speaker. Loading uses this syntax.
gpu = device.get("gpu")
There's also something which puts the program in fullscreen which hides the multishell bar. Not sure how well work that in our operating system, probably ignore it I'd imagine.
window.setFullscreeen(true)
Then the CPU can set a target, which leads me to believe that the GPU isn't actually the thing that is in control of drawing the individual pixels, it's more of a fancy paintuils API.
gpu.setTarget(window.getImage())
There are a ton of GPU functions which I'm not going to look in to much, they're clearly for games, but there are things like image loading and image rotation; so once again it does look like it's a bit like paintutils. It looks like it can load spritesheets too which is nice for games.
One of the best things I noticed was the minimum timer time looks like it's 1 / 60, meaning 60 FPS is theoretically possible. I tweaked our emulator and tried it with Silica. Animations are certainly smoother. It can maintain 60 frames per second when idle, but duration animation it was dipping between about 35 and 25. Hopefully we'll be able to speed that up, and it might be a ton quicker if CraftOS 2.0 uses LuaJIT or something that's not LuaJ.
os.startTimer(1/60)
We've got key checking, as was requested a little earlier, which is a good sign for games. I'm hoping/praying that Dan has a similar thing for the mouse so we can have mouse hovering interactions (I need to hide those close buttons until needed Dan!

)
if keyboard.getKey(keys.q) then
And obviously we've got sounds! I'm really hoping that this will let us do more than just play single sound effects. I'm planning to make a music player that will hopefully be able to play reasonable quality songs, although I know pretty much zero about sound, so all those attack, vibrato stuff is completly foreign to me.... fingers crossed. Here's a sneak peak of a serverly under-baked mock up...
speaker.play(sfx)
And there's a colour mapping function which I think was discussed a little earlier, but seems a little bizzare... jury is still out on that one.
Edited by oeed, 19 October 2015 - 11:39 AM.