Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  KeyReleased Bug  (Read 503 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Posted 2013-06-01 09:45:42 »

After the last Java update on OSX (several months ago now), all my keyboard handlers stopped working correctly in applets.  Seems a lack of KeyRelease.

What I've been using for quite a few years in Java4k (Ok, depreciated handler and horrible to read, but it is small)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
    /** Process Keyboard and Mouse Events */
    @Override
    public boolean handleEvent(Event e) {
        switch((e.id-1)|1) {
            case java.awt.Event.KEY_PRESS:
            case java.awt.Event.KEY_ACTION:
                keyboard[e.key] = (e.id&1)==1;
                return true;
            default:
        }
        return false;
    }


Sadly, now the keys now just stick on.  I had a look at other people's applets on Java4k and similar problems all over. So, I thought, it's broken, but another Java release will come along real soon now.  Only it hasn't.  So, do other people have this problem (on OSX) or is it just me.

Edit: This is using latest safari - could be it isn't passing on KeyRelease?

Time flies like a bird. Fruit flies like a banana.
Offline ReBirth
« Reply #1 - Posted 2013-06-01 09:56:14 »

1. Make a simple program to debug, try it on desktop and applet
2. If both of them fail, blame Apple and Oracle.
3. Else if only the applet who fails, try with other browsers
4. If works on other browser, blame Safari team and oracle. If no blame Apple and Oracle.
5. Nothing work, blame Apple and Oracle.

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #2 - Posted 2013-06-01 10:01:59 »

Problem also in Firefox
https://bugzilla.mozilla.org/show_bug.cgi?id=849172

Quote
Since Java 1.7.0_21 it is broken in Safari, too. So maybe this is an Jave/Oracle issue.

There's a few threads on stack exchange too, but no full blown hue and cry.  Probably no one writes java applets now?

Time flies like a bird. Fruit flies like a banana.
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.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (20 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (57 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 08:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 05:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 05:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 16:13:37

HotSpot Options
by Roquen
2014-05-15 14:59:54

HotSpot Options
by Roquen
2014-05-06 20:03:10

Escape Analysis
by Roquen
2014-04-30 03:16:43

Experimental Toys
by Roquen
2014-04-28 18:24:22
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!