Repository navigation
A touch drawer takes the shelf's place, and useInputMode() says which device is in hand - #17
Merged
Merged
Conversation
…hows one tool at a time, with what its tooltip would say
A pointer keeps its place and its hover after the hand leaves it for the pad. A dock that reads hover as the player navigating it can now tell which device is in use.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes from a game that vendors Bureau, one commit each.
A touch drawer takes the shelf's place
A tooltip is read by hovering, and a finger never hovers.
TouchDraweris the dock's drawer for a finger: it takes the dock's place and shows one tool at a time, with what the tooltip would have said printed in the open, arrow keys either side to step through the tools, and folder tabs when the drawer files its tools under sections.Shelfgoes, with its tests.Tabs,HudKey,Buttonand the tokens follow, and the bevel golden is recorded again.useInputMode()The device in the player's hand, as a hook:
"mouse","touch"or"gamepad".getInputMode()already answered outside React. A pointer keeps its place and its hover after the hand leaves it for the pad, so a dock that reads hover as "the player is navigating me" needs to know which device is in use, and to hear when it changes.useHintDevice()reads it.Checked
deno install --frozen,deno fmt --check,deno lint,deno task checkanddeno task test(390 passed) on this branch overmain.