microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

Fix mouse and keyboard input when running on desktop #36

Closed Almost-Done closed 7 years ago

Almost-Done commented 7 years ago

Mouse and keyboard input was not captured when running on desktop. This change captures mouse and keyboard input from the current window.

Fix issues related to routing input to the scripting guest: JsValueRef values got garbage collected unintended, causing AVs. Changed to code to allocate arrays of JsValueRefs on the stack to prevent garbage collection.

Add OrbitControl.js to enable mouse camera control in the ThreeJS app when running on desktop.

Fix misc compiler warnings.

Bubble mouse events to "document", not just "canvas".