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

NEK interacting with media keys #40

Open
artubi opened this issue Oct 28, 2015 · 9 comments
Open

NEK interacting with media keys #40

artubi opened this issue Oct 28, 2015 · 9 comments
Labels

Comments

@artubi
Copy link

artubi commented Oct 28, 2015

HI,
I'm having some issues with newest version of NEK. Basically, it react to pressing media keys on keyboard.

Tested with:
NotEnoughKeys-1.7.10-2.0.0b41
NotEnoughKeys-1.7.10-3.0.0b43

Details:
Pressing media keys on my keyboard triggers other actions. By action I mean those in keyboard setting (Sneak, Place block, Chat, Cinematic camera....) It seems to triggering unbound and conflicting keys.
I wanted to change volume in my computer using media keys on keyboard and chat popped up. Every time I pressed media keys (volume, playback,hell, even calculator key) it opened chat. And it can get even worse. In test pack which consisted of only Forge + NEK, I have binded keys like Twitch, CInematic camera, Chat and some others into "NONE" or "END", just to try what it will do. Result? Unless Chat was binded onto non-conflicting key, pressing media key opened it and after that it kept triggering Cinematic camera. Or both of them at once.

Yes, I could simply pause the game to change the volume but thats kinda inconvenient.

@dmodoomsirius
Copy link
Member

When I get home I'll test it. I may have to put in debug code to see why. I'll post here again when I have a dev build for you to test.

Sent from my iPhone

On Oct 28, 2015, at 9:58 AM, artubi [email protected] wrote:

HI,
I'm having some issues with newest version of NEK. Basically, it react to pressing media keys on keyboard.

Tested with:
NotEnoughKeys-1.7.10-2.0.0b41
NotEnoughKeys-1.7.10-3.0.0b43

Details:
Pressing media keys on my keyboard triggers other actions. By action I mean those in keyboard setting (Sneak, Place block, Chat, Cinematic camera....) It seems to triggering unbound and conflicting keys.
I wanted to change volume in my computer using media keys on keyboard and chat popped up. Every time I pressed media keys (volume, playback,hell, even calculator key) it opened chat. And it can get even worse. In test pack which consisted of only Forge + NEK, I have binded keys like Twitch, CInematic camera, Chat and some others into "NONE" or "END", just to try what it will do. Result? Unless Chat was binded onto non-conflicting key, pressing media key opened it and after that it kept triggering Cinematic camera. Or both of them at once.

Yes, I could simply pause the game to change the volume but thats kinda inconvenient.


Reply to this email directly or view it on GitHub.

@artubi
Copy link
Author

artubi commented Oct 28, 2015

I'm not sure if it help but my keyboard is Chicony ku-0108.

Also, I have updated Tcon from 1.8.7 to 1.8.8 which is compatible with b41 and b43 (not with b30). This happened.

The inventory quite often reopens after closing. Like 1 in ~10 times. It's not like Tcon 1.8.7 + NEK b41/43 where you couldn't close it because immediately it reopens. It's like; you can use it normally for few minutes an then when you close inventory, it (once) reopens.

Example:
It's night, looking for Enderman and I have to some quick inventory management to take all the loot. A Creeper came next to me and I want to fly off to avoid getting killed by it. I can't because after closing inventory it immediately reopen. Try again, same result. Escaped by slamming ESC because inventory stood closed up. It works normally few minutes and then again after opening inventory and closing it, it reopens (only once). Again, for next few minutes works normally...

I'm not exactly sure but think it sometimes opens up even after closing chest by pressing E.

@dmodoomsirius
Copy link
Member

is there any other mods in that instance? just wondering.

@artubi
Copy link
Author

artubi commented Oct 28, 2015

Modpack info:
"Custom" (heavily) modified Direwolf20 1.20 pack. Since then, all mods have been updated to latest version (except few mods). Updated +-weekly. According to Forge: 140 mods.
Modlist: http://pastebin.com/e4tLhbYh

Forge: 1.7.10-10.13.4.1448
Java: 8_51

Versions of mods used prior listed date
pre 28.10.2015
NotEnoughKeys-1.7.10-2.0.0b41
CodeChickenCore-1.7.10-1.0.7.46-universal
EnderStorage-1.7.10-1.4.7.33-universal
NotEnoughItems-1.7.10-1.0.5.111-universal

pre 27.10.2015
NotEnoughKeys-1.7.10-1.0.0b30
mcjtylib-1.6.1
rftools-3.50
industrialcraft-2-2.2.782-experimental
Mantle-1.7.10-0.3.2a
TConstruct-1.7.10-1.8.7
MatterOverdrive-1.7.10-0.4.0-RC4


Yesterday, a new version of Tcon came out and it says:
"Update to NotEnoughKeys new API, fixing the inventory open bug"
So, I was like "YAY", copied last downloaded version of NEK (b41) into instance /pack. I didn't even tried creative map to check for issues. Made backup of my world and hoped right into it. Shortly after, that inventory issue. I didn't had issue with the media keys. Today, I downloaded and updated NEK to b43 and hoped into creative map because i wanted to fix recipe conflict and didn't know names of the items. I wanted to listen some music, so I left running some youtube video in background. After short while, part of the music was very loud so i tried to turn the volume down a little. that was ingame, game running; not paused or opened inventory / GUI and then chat pops up. I close it, pushed volume button once more, it popped up again. Ia this point, I tried all volume and playback keys. Same result. Hell, it even popped up by pushing calculator key on keyboard!

I tried it few minutes ago. My findings:
NEK (b41/b43) reacts to pressing media keys by triggering actions (in keyboard setting) if they are not bound to anything (NONE). I haven't been able to replicate if there are conflicting keys, but it definitely happens if they are unbound.

An example of what happens if I:

  1. Bind "Inventory" to "NONE" (unbind it). Pressing any media key (playback, volume, calculator...) will open up inventory.
  2. Bind "Hotbar 1" and "Chat" to "NONE". Move into any other hotbar slot, lets say 5. Pressing any media key will open chat and move to slot 1.

(A funny thing: even old NEK b30 had some reaction when I pressed media keys. Nothing really happened but every time i pressed media key WAILA disappeared. Even if I was looking at block and was set to "show". Lifting off the key caused WAILA to reappear)

EDIT: forgot to list java / forge

@dmodoomsirius
Copy link
Member

also I like how detailed this issue is 👍

@TheTemportalist
Copy link

I think some (or all) media keys overlap keycodes with other keys, but i cannot be sure yet.

@itsSilverlink
Copy link

Hi i have this issue also. When accidentally pressing a media key things go on the fritz. Slow mouse movement and other stuff happens. Relogging or restarting the game fixes it.

@artubi
Copy link
Author

artubi commented Nov 20, 2015

@XSilverlink thats because of "cinematic camera". In keyboard config there is this option called "Toggle Cinematic Camera" which switches between normal and "slow / smooth" movement of the camera. It can be turned on/off, press the media keys few times and it should turn off or bind it to some key and then turn it off.
It happened to me too.

@TheTemportalist
Copy link

@dmodoomsirius You have any ideas whats up with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants