[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] PEG gl_mouse_modifiers--mudyc
From: |
Matti Katila |
Subject: |
[Gzz] PEG gl_mouse_modifiers--mudyc |
Date: |
Fri, 1 Aug 2003 13:38:49 +0300 (EEST) |
========================================================================
PEG gl_mouse_modifiers--mudyc: Fixing native mouse event binder
========================================================================
:Authors: Matti Katila
:Date-Created: 2003-08-01
:Last-Modified: $Date: 2003/07/28 13:53:51 $
:Revision: $Revision: 1.4 $
:Status: Current
:Stakeholders: tjl
:Scope: Trivial
:Type: Implementation
InputEvent, which is inherited by MouseEvent, knows the
states of modifier keys. The current native event binder gives
wrong modifiers to InputEvent class. To avoid difference between
gl and awt clients this must be fixed.
Intro
=====
Input event model between awt and gl differs. In awt JVM handles all
events and in gl all events are binded from X (currently there are no
other ports) to JVM through JNI. The current mouse binded doesn't look
for extended modifier keys('Control', 'Alt', 'Shift' or 'Meta').
Changes
=======
The current binder makes the extended modifier key(s) to look more like:
1. With button 1 extended modifiers is "Button1"
2. With button 2 extended modifiers are "Alt+Button2"
3. With button 3 extended modifiers are "Meta+Button3"
The correct extended key(s) *don't affect* any kind.
The code that handles X events to java must be fixed to correspond
the correct mature of awt client where "Control", "Shift", "Alt"
and "Meta" extended modifiers are noticed only when the button
state is down.