Skip to content

Implement the experimental pointer lock API#247

Merged
koute merged 9 commits intokoute:masterfrom
ryanisaacg:pointer-lock-api
Jul 4, 2018
Merged

Implement the experimental pointer lock API#247
koute merged 9 commits intokoute:masterfrom
ryanisaacg:pointer-lock-api

Conversation

@ryanisaacg
Copy link
Copy Markdown
Contributor

No description provided.

impl IEvent for PointerLockChangeEvent {}
impl IUiEvent for PointerLockChangeEvent {}
impl IMouseEvent for PointerLockChangeEvent {}
impl IPointerEvent for PointerLockChangeEvent {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I don't think these events are supposed to derive from these? (The specs are somewhat unclear regarding that.)

Taking a peek a Firefox sources it looks like it should just be an Event? Can you double check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...Huh. That's what I get for not checking my assumptions about web api's I guess. Yeah those derivations shouldn't be there.

@koute
Copy link
Copy Markdown
Owner

koute commented Jul 3, 2018

Also it'd be nice if you could add a few really basic tests just as we have for other events. (:

@ryanisaacg
Copy link
Copy Markdown
Contributor Author

Sure, no problem.

@koute
Copy link
Copy Markdown
Owner

koute commented Jul 3, 2018

You also should export those events in lib.rs or else they'll be useless. (:

@ryanisaacg
Copy link
Copy Markdown
Contributor Author

Whoops! My bad.

@koute
Copy link
Copy Markdown
Owner

koute commented Jul 4, 2018

LGTM; thanks!

@koute koute merged commit 85a191f into koute:master Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants