Hello, I am working on a virtual keyboard prototype between an iPad and iMac using firebase (for more information see https://goo.gl/jxSjYP). So far it seems like all the major functions are working, however it would be cool to make something closer to a working demo with trackpad support and arrow keys.
I have some ideas about how to make this work, but before I dive in to coding something that is possibly more complicated than it needs to be, I would love to hear your ideas, or general feedback. My idea for the arrow keys sound simple enough, but maybe my implementation of the track pad could be better?
For the trackpad, I was thinking of having a layer on the main computer with its position mapped to the location of touchDrag events within the trackpad on my tablet. Then on a tap event, I could record the coordinates of the tap, adjust coordinates, and then simulate a click at that location on the main computer.
For the arrow keys, I found an example of specifying the location of the cursor within a text box so pressing an arrow key would find the current position of the cursor in the text box, and then increment or decrement by one depending on which arrow key was pressed.