Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL, left alt key weirdness  (Read 1184 times)
0 Members and 1 Guest are viewing this topic.
Offline Varkas
« Posted 2014-03-07 15:36:34 »

If I press the left alt key, my game loop seems to stop, also the mouse pointer changes back to the operating system cursor.

I've googled and the suggested solution was "upgrade your LWJGL libraries". I'm using v2.9.1 that seems to be the most recent, so I don't think old libraries are the problem.

Am I doing something wrong? Can I change the key to behave just like any other of the modifier keys? Is this a known problem?

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Offline Drenius
« Reply #1 - Posted 2014-03-07 16:00:19 »

You never noticed that? Thats weird...
No, you are not doing anything wrong. At least not more than everybody else does.
Offline opiop65

JGO Kernel


Medals: 161
Projects: 7
Exp: 4 years


JumpButton Studios


« Reply #2 - Posted 2014-03-07 17:08:29 »

Ermm I never noticed that either... I'll go ahead and see if I can reproduce what happened to you.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #3 - Posted 2014-03-07 17:12:15 »

This happens to all lwjgl programs.
It was also a great way to enable auto pilot in minecraft for a long time. (Holding a key when pressing ALT and releasing it before clicking the window covers the key release event)
Offline Varkas
« Reply #4 - Posted 2014-03-07 22:04:43 »

You never noticed that? Thats weird...

It's just my second LWJGL based project and the first time I wanted to make use of the left alt key. It's a bit annoying that the key seems to be unusable, but there are enough other keys left  Tongue

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Offline HeroesGraveDev

JGO Kernel


Medals: 309
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #5 - Posted 2014-03-07 22:07:22 »

Works fine for me.

Offline Varkas
« Reply #6 - Posted 2014-03-07 22:14:29 »

Then there must be a solution. What OS and LWJGL version do you use?

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Offline HeroesGraveDev

JGO Kernel


Medals: 309
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #7 - Posted 2014-03-07 22:18:05 »

Arch Linux 64-bit with the KDE desktop.

Just realised I'm on LWJGL 2.9.0.
I'll upgrade to 2.9.1 and see if that changes things.

Edit: No change with 2.9.1

Offline Drenius
« Reply #8 - Posted 2014-03-07 22:21:40 »

Are there the ALT (e.g. F4) shortcuts in Linux?
Offline HeroesGraveDev

JGO Kernel


Medals: 309
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #9 - Posted 2014-03-07 22:23:47 »

Yes, assuming that they are configured to do that function, which most of the time they are by default.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #10 - Posted 2014-03-08 11:00:49 »

Are there the ALT (e.g. F4) shortcuts in Linux?
Yup.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Online princec

« JGO Spiffy Duke »


Medals: 430
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #11 - Posted 2014-03-08 11:12:12 »

It's a KDE thing.

Cas Smiley

Online Kefwar

Senior Devvie


Medals: 8
Projects: 1



« Reply #12 - Posted 2014-03-08 20:29:40 »

Nothing happens when pressing left alt Tongue. (Windows 7)
Offline Varkas
« Reply #13 - Posted 2014-03-08 22:51:57 »

I've got Windows 7, too. So far I thought that it might be a Windows thing which can't be reproduced with Linux, but if it works on your Windows, there must be a way to get it working on my computer too. At the moment I'm just using a different key for my game.

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Online SHC
« Reply #14 - Posted 2014-03-09 04:35:40 »

Left alt key is working with LWJGL 2.9.1. Tested on Windows 8.1 Pro 64 bit, OSX Mavericks, Ubuntu 13.10 64 bit.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!