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

Shift key isn't registered in Ubuntu 20.04 #3

Open
vitalije opened this issue Sep 18, 2022 · 4 comments
Open

Shift key isn't registered in Ubuntu 20.04 #3

vitalije opened this issue Sep 18, 2022 · 4 comments

Comments

@vitalije
Copy link

I can't open demo machines which have underscore character in their names. I can't type underscore.
It seems that I can't type any of the keys in the mockmechanics.library.keymap/shift-keymap , so I guess that the shift key press isn't registered.

@felipereigosa
Copy link
Owner

That's strange, I use Ubuntu also, not sure why it wouldn't work. If you could print the code of the shift key press event in the key-pressed function in the commands.clj file it would help me narrow down the problem, maybe the codes vary depending on hardware, I was assuming they didn't. Just one thing though, the machines don't have underscores, you don't have to type the _000 to open them, that's a version number. You can just open "clock" say and it will open the one with the highest number and when you save, it gets saved as one plus the current value. Seems a little confusing but I use blender a lot and I often do these incremental saves manually so as to never saver over things and lose work. I thought I would automate this with mock mechanics.

@felipereigosa
Copy link
Owner

Actually what I said shouldn't be the reason, I'm using the GLFW's constants for the key codes, I mixed it up with another project where I'm using hardwired codes. it would still be helpful if you printed if key-pressed gets called at all when you press the shift keys by themselves and what the code of the event is.

@vitalije
Copy link
Author

I've realized that it wasn't necessary to enter the full path, just the name (mixer, piano, ...) in order to open it.

The issue I had was with the version I've downloaded from the web site. However, it seems to be fixed in the current git-hub version.

Maybe you need to update the version on the web site.

@felipereigosa
Copy link
Owner

Ah cool. Yeah, I definitely need to update that, it's quite old, I'll do that later today.

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

No branches or pull requests

2 participants