readyaim
Version:
readyaim provides an aiming mechanism using a THREE.js camera
18 lines (14 loc) • 418 B
JavaScript
// Filename: readyaim_events.js
// Timestamp: 2017.11.11-23:06:23 (last modified)
// Author(s): bumblehead <chris@bumblehead.com>
module.exports = (o => {
o.GAZEOVER = 'gazeover';
o.GAZEOUT = 'gazeout';
o.GAZELONG = 'gazelong';
o.GAZECLICK = 'gazeclick';
o.publish = (state, ...args) => (
typeof state.oneventfn === 'function'
&& state.oneventfn(state, ...args),
state);
return o;
})({});