Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inputs #12

Merged
merged 1 commit into from Jul 11, 2019
Merged

Add support for inputs #12

merged 1 commit into from Jul 11, 2019

Conversation

@Manishearth
Copy link
Member

Manishearth commented Jul 10, 2019

No description provided.

Copy link
Member

asajeffrey left a comment

A bunch of bikeshedding and similar nit-picking.

.travis.yml Outdated
@@ -11,6 +11,7 @@ script:
- cargo fmt --all -- --check
- cd webxr; cargo build --features=glwindow
- cd webxr; cargo build --features=ipc,glwindow
- cd webxr; cargo build --features=ipc,headless

This comment has been minimized.

@asajeffrey

asajeffrey Jul 10, 2019

Member

Can just make this --features=glwindow,headless and --features=ipc,glwindow,headless

@@ -40,4 +41,6 @@ pub trait Device: 'static {
/// While this method is being called, the device has unique access
/// to the texture. The texture should be sync'd using glWaitSync before being used.
fn render_animation_frame(&mut self, texture_id: u32, size: Size2D<i32>, sync: GLsync);

fn initial_inputs(&self) -> Vec<InputInfo>;

This comment has been minimized.

@asajeffrey

asajeffrey Jul 10, 2019

Member

Bikeshedding: not sure about the name. input_sources: Vec<InputSource>? Needs some documentation too.

This comment has been minimized.

@Manishearth

Manishearth Jul 10, 2019

Author Member

This is about the initial input sources only, we don't handle changes yet. The client will have to keep track of changes.

This comment has been minimized.

@asajeffrey

asajeffrey Jul 10, 2019

Member

Still needs documentation!

webxr-api/input.rs Outdated Show resolved Hide resolved
webxr-api/input.rs Show resolved Hide resolved
webxr-api/input.rs Show resolved Hide resolved
webxr-api/frame.rs Show resolved Hide resolved
webxr-api/input.rs Outdated Show resolved Hide resolved
webxr-api/input.rs Show resolved Hide resolved
@asajeffrey asajeffrey mentioned this pull request Jul 10, 2019
8 of 8 tasks complete
@Manishearth Manishearth force-pushed the inputs branch 2 times, most recently from a5cf241 to dd40172 Jul 10, 2019
@asajeffrey
Copy link
Member

asajeffrey commented Jul 11, 2019

It could do with a few more code comments, but otherwise you can r=me.

@Manishearth
Copy link
Member Author

Manishearth commented Jul 11, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

📌 Commit e7216b3 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

Testing commit e7216b3 with merge 2209fed...

bors-servo added a commit that referenced this pull request Jul 11, 2019
Add support for inputs

None
@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

☀️ Test successful - checks-travis
Approved by: asajeffrey
Pushing 2209fed to master...

@bors-servo bors-servo merged commit e7216b3 into master Jul 11, 2019
5 checks passed
5 checks passed
Travis CI - Branch Build Passed
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
homu Test successful
Details
@Manishearth Manishearth deleted the inputs branch Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.