I disagree that both keys send a different ascii code.  Both the enter and the return key on the number pad send ascii code 13. The difference is that the one on the number pad is flagged as what's called an extended key, just like the function keys, the pageup, pagedown, home, end, delete and insert keys along with the arrow keys, as well as anything on the number pad itself, all of those keys set the extended flag when they are pressed, that is why programs can tell which one is pressed, not because they send different ascii values.  The ascii value for a return character is 13, no matter which key is used to enter it.

On 4/17/2020 1:55 PM, Chris Norman via groups.io wrote:
I believe, although don't quote me on it, that the "Enter" key, located beneath the backspace key, is actually called programmatically, the "Enter" key. The numberpad one is called "Return".

Occasionally programs use the two as different keys. pro Tools probably being the most obvious one. Also, if you're coding for the number pad, it's useful to be able to isolate the two keys.

When I was writing at utility for controlling the computer one-handed, it was a necessity to use only the number pad "return", rather then the standard "Enter" key. Plus... Why have 2 keys and give them the same ASCii value? That would be no fun!

Take care,

Chris Norman



On Fri, 17 Apr 2020 at 17:15, Scott Chesworth <[email protected] <mailto:[email protected]>> wrote:

    Each of those keys sends a differend ASCII code, I'm guessing that's
    why NumPad Enter isn't supported in some audio games by default. Tbh
    I'm not nerdy enough to know why both versions of Enter exist.

    Scott

    On 4/17/20, Tyler Zahnke <[email protected]
    <mailto:[email protected]>> wrote:
    > I wish I understood the difference between the functions of
    these keys.
    >
    > On 4/17/20, Scott Chesworth <[email protected]
    <mailto:[email protected]>> wrote:
    >> As a workaround, you could remap your physical NumPad enter key to
    >> replicate the functionality of Enter to the right of Apostrophe.
    >> SharpKeys is a good free mapping utility.
    >> https://www.randyrants.com/category/sharpkeys/
    >>
    >> Hth,
    >>
    >> Scott
    >>
    >> On 4/17/20, Tyler Zahnke <[email protected]
    <mailto:[email protected]>> wrote:
    >>> This isn't a problem in most programs; word processors, web
    browsers,
    >>> or audio games that use a browser engine like Oriol Gomez, but how
    >>> come in typical audio games (like those made by L-Works), the
    enter
    >>> key near the number pad doesn't work? You know, the long enter
    key to
    >>> the right of the dot key on the number pad. I guess it's just
    that my
    >>> regular enter key (to the right of apostrophe) doesn't work
    right now
    >>> and I have to wait an extra month or two for this USB keyboard
    thanks
    >>> to the current situation, so I stopped gaming for a while, but
    it got
    >>> me thinking, why do those games only respond to the regular
    enter key
    >>> and not the num pad enter key? Is there a way to change that,
    so the
    >>> num pad enter key always does what enter is supposed to do? I
    mean, it
    >>> does it in every other situation; typing documents, clicking
    links in
    >>> a web browser; just not certain oddly specific programs like
    typical
    >>> audio games
    >>>
    >>>
    >>>
    >>>
    >>
    >>
    >>
    >>
    >
    >
    >
    >





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#122292): https://groups.io/g/blind-gamers/message/122292
Mute This Topic: https://groups.io/mt/73086178/21656
Group Owner: [email protected]
Unsubscribe: https://groups.io/g/blind-gamers/leave/607459/1071380848/xyzzy  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to