runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

Mouse support #131

Open facekapow opened 8 years ago

facekapow commented 8 years ago

Well, I had some free time and nothing to do, so... mouse driver! 😄 Thought this would go nicely with graphics. Has a few kinks, though. For example, you have to wait until after the driver is installed (usually about 2/3 seconds after the shell is displayed) in order to be able to click into QEMU (otherwise the system, or at least the keyboard, will freeze up). Also, no hot plugging (you can't escape the mouse to the host and go back). Otherwise, it's pretty decent mouse driver implementation.

Again, as mentioned in #107 (specifically this comment), this should be refactored into an optional module with other things.

iefserge commented 8 years ago

Wow, this is nice! Looks pretty simple, assumed mouse would be complicated 😄

I hope to wrap up tests pretty soon and make them working again, then going to hack on modules (hope this weekend). Modules will let us add any (experimental) features easily.

Not sure if realistic or too crazy, but if we manage to support webgl (through virtio-gpu) we might be able to run some WASM-compiled games on it :)