-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
29 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../wired-gltf/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../wired-math/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
package wired:input; | ||
|
||
world imports { | ||
world host { | ||
import handler; | ||
import method; | ||
import types; | ||
import api; | ||
} | ||
|
||
world host { | ||
export api; | ||
} | ||
interface handler { | ||
use types.{input-event}; | ||
use wired:gltf/node.{node}; | ||
|
||
// Input handler. | ||
// Represents an object in 3D space that can react to input. | ||
// Handlers can optionally capture the input method, stopping propagation to other handlers. | ||
resource spatial-handler { | ||
constructor(node: borrow<node>); | ||
|
||
// Handle the next recieved input event. | ||
// Events only last for one tick. | ||
handle-input: func() -> option<input-event>; | ||
} | ||
} | ||
|
||
// Input method. | ||
// Represents a single point of interaction (3D pointer, hand, finger tip). | ||
interface method {} |