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

Cleanup Todos in input.fs #194

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

jjohnson338
Copy link
Contributor

Took a swing at cleaning up a couple of TODOs found in the input.fs file.

@@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) =
| Key(_, Key.Add) -> Special("kPlus")
| Key(_, Key.Subtract) -> Special("kMinus")
| Key(_, Key.Divide) -> Special("kDivide")
// TODO| Key(_, Key.Decimal) -> ???
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks to be covered by line 187.

Copy link
Owner

Choose a reason for hiding this comment

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

must've been abandoned in the first run, then added later ;)

@@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) =
| Key(_, Key.Add) -> Special("kPlus")
| Key(_, Key.Subtract) -> Special("kMinus")
| Key(_, Key.Divide) -> Special("kDivide")
// TODO| Key(_, Key.Decimal) -> ???
// TODO| Key(_, Key.Separator) -> ???
| Key(_, Key.Separator) -> Special("Bar")
Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

according to this thread: https://stackoverflow.com/questions/36666868/uk-keyboard-virtual-key-code-for-the-symbol
Key.Separator is the "Enter" key on a numpad and I don't even have a numpad to test it 😂
Maybe map to <kEnter>.

Copy link
Owner

Choose a reason for hiding this comment

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

and maybe Key.Decimal to <kPoint>?

@yatli
Copy link
Owner

yatli commented Aug 15, 2021

and thanks for cleaning this up!

@yatli yatli merged commit c2349c3 into yatli:master Oct 1, 2021
yatli pushed a commit that referenced this pull request Oct 1, 2021
@yatli
Copy link
Owner

yatli commented Oct 1, 2021

@jjohnson338 I've also cleaned up the keypad mappings (0efa44b)

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