janpaul123 / paperprograms

Run Javascript on pieces of paper!
https://paperprograms.org
MIT License
498 stars 54 forks source link

Bluetooth keyboards #74

Open shaunlebron opened 6 years ago

shaunlebron commented 6 years ago

Dynamicland has bluetooth keyboards that can be pointed at programs to allow in-space editing. Example video below:

screen shot 2018-08-29 at 5 41 16 pm

I think Operating Systems always assumes one keyboard, so to allow multiple keyboards to modify programs in parallel probably requires reading bluetooth signals from each directly.

(Still unsure about many parts here. Just creating a place for brainstorming)

janpaul123 commented 6 years ago

Good idea! And yeah, we'd have to implement cursors ourselves. Might be worth finding or creating a little library that can do text editing on canvas. Also see Bret's tweet from yesterday. 😉

If we can't use bluetooth keyboards hooked up to one computer, another option might be having small computers for each keyboard (e.g. raspberry pi) and then having some sort of communication via the server (e.g. via websockets) to the computer that's hooked up to the projector. Something like paperprograms.org/bluetooth-keyboard/:spaceName/:keyboardProgramId?