Skip to content

Add additional numpad key mappings#805

Merged
Osspial merged 2 commits intorust-windowing:masterfrom
chrisduerr:numpad-additions
Apr 7, 2019
Merged

Add additional numpad key mappings#805
Osspial merged 2 commits intorust-windowing:masterfrom
chrisduerr:numpad-additions

Conversation

@chrisduerr
Copy link
Copy Markdown
Contributor

Since some platforms have already used the existing Add, Subtract
and Divide codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
Subtract numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new NumpadAdd, NumpadSubtract and
NumpadDivide actions, however I think in this case it should be fine
to map them to the same virtual key code.

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.
@Osspial
Copy link
Copy Markdown
Contributor

Osspial commented Mar 22, 2019

Thanks for the PR!

This looks good to me, but I'm going to cc @vberger and @francesca64 so they can take a look, as the maintainers of the changed platforms.

@Osspial Osspial mentioned this pull request Mar 22, 2019
Copy link
Copy Markdown
Contributor

@goddessfreya goddessfreya left a comment

Choose a reason for hiding this comment

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

Tested w/ wayland and x11, lgtm.

@Osspial
Copy link
Copy Markdown
Contributor

Osspial commented Apr 7, 2019

Thanks! Merging

@Osspial Osspial merged commit c0b2cad into rust-windowing:master Apr 7, 2019
elinorbgr pushed a commit to elinorbgr/winit that referenced this pull request Apr 7, 2019
* Add additional numpad key mappings

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.

* Add Numpad PageUp/Down, Home and End on Wayland
elinorbgr pushed a commit to elinorbgr/winit that referenced this pull request Apr 7, 2019
* Add additional numpad key mappings

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.

* Add Numpad PageUp/Down, Home and End on Wayland
elinorbgr pushed a commit to elinorbgr/winit that referenced this pull request Apr 7, 2019
* Add additional numpad key mappings

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.

* Add Numpad PageUp/Down, Home and End on Wayland
felixrabe added a commit to felixrabe/winit that referenced this pull request Jun 22, 2019
felixrabe pushed a commit to felixrabe/winit that referenced this pull request Jun 30, 2019
* Add additional numpad key mappings

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.

* Add Numpad PageUp/Down, Home and End on Wayland
kosyak pushed a commit to kosyak/winit that referenced this pull request Jul 10, 2019
* Add additional numpad key mappings

Since some platforms have already used the existing `Add`, `Subtract`
and `Divide` codes to map numpad keys, the X11 and Wayland platform has
been updated to achieve parity between platforms. On macOS only the
`Subtract` numpad key had to be added.

Since the numpad key is different from the normal keys, an alternative
option would be to add new `NumpadAdd`, `NumpadSubtract` and
`NumpadDivide` actions, however I think in this case it should be fine
to map them to the same virtual key code.

* Add Numpad PageUp/Down, Home and End on Wayland
kosyak pushed a commit to kosyak/winit that referenced this pull request Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants