mojira.dev
MC-127939

Several different media keys are bound to "scancode.number" on Windows

 

If you bind your volume key to a control, it will call it "scancode.256"

 

I found this bug when my Logitech mouse's side-buttons stopped working in minecraft, because they also lowered my PC volume. 

Linked issues

Attachments

Comments 11

violine1101

I can assign Mouse 4 and Mouse 5 just fine, but the scancode.256 appears if I use any of the volume controls on my keyboard.

migrated

@violine1101 I think for me it has something to do with the fact that my mouse4 and mouse5 also control my volume outside of games. It hasn't done that ingame until this snapshot, now that they appear as scancode.256

migrated

I couldn't get scancode.256 to show up, but this showed up instead:

[media]
galaxy_2alex

This seems to have extended to several keys, including all media keys as well as Mouse6 and Mouse7 for me, and the thing shown in the Controls settings is even weirder now.

ampolive

Can confirm in 1.17.1 Release Candidate 1.

1 more comments
ampolive

Can confirm in 21w44a.

ouroya

Worth noting that SOH is Start of Heading, ␁, which is codepoint $01, which may be an indicator that the game is reading garbage data. in all, the string "␁\␁]␁" is $01 5c 01 5b 01. This string was mentioned for scancode.310 in this MinecraftForum post, which went unanswered, back in 1.8.9. RShift is 229 according to this table, however this user's keyboard seems to be nonstandard, as they were able to get RShift recognized by holding Mouse1 at the same time they hit the key. Scancode 310 should be a modifier key according to the earlier table, however that table seems to conflict with the data gathered for MC-170376, so this should be taken with a grain of salt. Code analysis will need to be done to disambiguate whether the game is actually referring to scancodes, or is erroneously referring to keycodes as scancodes.

muzikbike

I can't get SOHSOHSOH to show up at all in the recent versions I've tested (1.20.2 and snapshots for 1.20.3), but scancode.256 has shown up plenty of times. Can this ticket be renamed back?

migrated

The ownership of this report can be given to anyone who wants it by the way, as I'm not personally updating it

migrated

Was a fix ever found for this? Never had the problem before, but now my headphone volume wheel is being recognized as a key, and when not bound to anything, just going back out of menus

muzikbike

(Unassigned)

Confirmed

Input, Text, UI

keybind

Minecraft 18w14a, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w20b, ..., 1.17.1, 21w44a, 1.20.1, 24w21b, 1.21

Retrieved