tom5454 / Toms-Peripherals

MIT License
16 stars 2 forks source link

How do I make keyboard work with Advanced monitors? #11

Closed TabbyCatface closed 6 months ago

TabbyCatface commented 6 months ago

Not yet utilizing GPU, just wanted to test keyboard with a bigger monitor, as advertised, and can't figure how to make a keyboard do anything. Please help? Can it connect to programs run on a monitor? Should I manually program in support for the keyboard?

TabbyCatface commented 6 months ago

Let's say I opened a lua prompt on an advanced monitor. I connected the keyboard as a peripheral to the computer. I click on it, then click on the monitor -> it does nothing. What's next?

tom5454 commented 6 months ago

You have to connect the keyboard to the computer using wired modems, and call setFireNativeEvents(true) on the keyboard. Here is the example script: https://github.com/tom5454/Toms-Peripherals/blob/api/examples/inWorldMonitor.lua (This expects the keyboard on top of the computer)

TabbyCatface commented 6 months ago

Thank you, thank you, thank you! Nice to know you've got examples in the repository.