I have tried kaffe 1.1.7rc1 (experimental packages from Debian)
on PowerPC and found out that mouse and keyboard events are not working
properly.

I expect this to be a big endian related problem of gtk-peer
and would welcome confirmations.

I am attaching a test application which always gives me
23 or 24 in the getY() method, also the button numbers switch around.
Interesting enough getX() reports the right values.
Other tests reveal that keyboard events are also not transported.

When using -Xkaffe-xlib-awt, it works as expected.
Can someone confirm the problem on ppc?

As this is my first report, I did not directly go do the bugzilla
of kaffe or classpath.

Bernhard


import java.awt.*;
import java.awt.event.*;
import java.util.*;

public class TestMouse
extends Frame
{
  public static void main(String[] args)
  {
    TestMouse window = new TestMouse();
    window.setLocation(100,100);
    window.setSize(500,500);
    window.setVisible(true);
  }

  public TestMouse()
  {
    super("Test mouse clicks");
    addWindowListener(new MyWindowListener());
    addMouseListener(new MyMouseListener());
    addMouseMotionListener(new MyMouseMotionListener());
  }

  class MyMouseListener extends MouseAdapter
  {
    public void mousePressed(MouseEvent event)
    {

      System.out.println("mousePressed: "+ event + event.getX() +"/"+ event.getY());
    }

    public void mouseReleased(MouseEvent event)
    {
      System.out.println("mouseReleased");
    }
  }

  class MyMouseMotionListener extends MouseMotionAdapter
  {
    public void mouseDragged(MouseEvent event)
    {
      System.out.println("mouseDragged"+ event+ event.getX()+"/"+event.getY());
    }
  }

  class MyWindowListener extends WindowAdapter
  {
    public void windowClosing(WindowEvent event)
    {
      setVisible(false);
      dispose();
      System.exit(0);
    }
  }
}
_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to