Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd basic keyboard support for magicleap #22491
Conversation
highfive
commented
Dec 18, 2018
| } | ||
|
|
||
| bool Servo2D::keyboardEventListener(const lumin::ui::KeyboardEvent::EventData& event) { | ||
| if (event.getEventType() != lumin::ui::KeyboardEvent::EventType::KEY_PRESSED) { |
This comment has been minimized.
This comment has been minimized.
jdm
Dec 21, 2018
Member
Why not pass along KEY_DOWN and KEY_UP like we do in the glutin port, rather than simulating them in libmlservo?
This comment has been minimized.
This comment has been minimized.
asajeffrey
Dec 21, 2018
Author
Member
Er, because there aren't key down and up, only pressed at https://creator.magicleap.com/learn/reference/public/v0.16.0/LuminRT/namespacelumin_1_1____lr1__0_1_1ui_1_1_keyboard_event.html
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asajeffrey
Dec 21, 2018
Author
Member
Checked with magicleap, and there's no way to access the down/up events. https://forum.magicleap.com/hc/en-us/community/posts/360035146792-Keyboard-key-up-and-key-down-events-
| ..key_down.clone() | ||
| }; | ||
|
|
||
| // TODO: can the ML1 generate separate press and release events? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asajeffrey
Dec 21, 2018
Author
Member
That's using their own keyboard event impl, not the lumin runtime one. https://github.com/webmixedreality/exokit/blob/106bfbb4829057906067e6a88e4450df3e1895c2/deps/exokit-bindings/magicleap/include/magicleap.h#L86 uses https://github.com/webmixedreality/exokit/blob/106bfbb4829057906067e6a88e4450df3e1895c2/deps/exokit-bindings/magicleap/include/magicleap.h#L69 which has separate events for up and down.
The matching lumin events only have a pressed event: https://creator.magicleap.com/learn/reference/public/v0.16.0/LuminRT/namespacelumin_1_1____lr1__0_1_1ui_1_1_keyboard_event.html
|
@bors-servo r=jdm (on IRC https://mozilla.logbot.info/servo/20181221#c15753794) |
|
|
Add basic keyboard support for magicleap <!-- Please describe your changes on the following line: --> Add basic keyboard support for magicleap servo. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22401 - [X] These changes do not require tests because we don't test magicleap UI <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22491) <!-- Reviewable:end -->
|
|
@bors-servo retry |
|
|
Add basic keyboard support for magicleap <!-- Please describe your changes on the following line: --> Add basic keyboard support for magicleap servo. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22401 - [X] These changes do not require tests because we don't test magicleap UI <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22491) <!-- Reviewable:end -->
|
@asajeffrey Very few PRs can land right now. I am dealing with it; don't bother retrying. |
|
OK, I'll try to be patient. |
|
|
|
@bors-servo retry |
Add basic keyboard support for magicleap <!-- Please describe your changes on the following line: --> Add basic keyboard support for magicleap servo. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22401 - [X] These changes do not require tests because we don't test magicleap UI <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22491) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Add basic keyboard support for magicleap <!-- Please describe your changes on the following line: --> Add basic keyboard support for magicleap servo. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22401 - [X] These changes do not require tests because we don't test magicleap UI <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22491) <!-- Reviewable:end -->
|
|
asajeffrey commentedDec 18, 2018
•
edited by SimonSapin
Add basic keyboard support for magicleap servo.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is