Bug 1227

Summary: LinuxEventDeviceTracker reports misaligned relative Mouse Coordinates when using NEWT w/ RaspPi 7" TFT
Product: [JogAmp] Newt Reporter: Xerxes Rånby <xerxes>
Component: embeddedAssignee: Xerxes Rånby <xerxes>
Status: CONFIRMED ---    
Severity: enhancement CC: sgothel
Priority: ---    
Version: tbd   
Hardware: embedded_arm   
OS: linux   
Type: --- SCM Refs:
Workaround: ---

Description Xerxes Rånby 2015-09-23 11:18:55 CEST
On 8 sept 2015 Raspberry Pi foundation announced an 7" TFT add-on display with 10 point multi-touch for use with the Raspberry Pi
https://www.raspberrypi.org/blog/the-eagerly-awaited-raspberry-pi-display/

This new touch display sends absolute screen coordinates

NEWT BCM VC IV gets correct absolute screen coordinates when it is used in combination with the X11UnderlayTracker from inside xorg = working satisfactory

However the NEWT BCM VC IV still receive relative screen coordinates instead of absolute when used from console = not working satisfactory
The mouse pointer is placed at a different location compared to where the user puts its finger on the display.


In order to fix this issue the LinuxEventDeviceTracker need to support mouse events (best since it will add multitouch support as well)
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java;hb=HEAD
alternatively the current in use LinuxMouseTracker needs to be enhanced to handle absolute touch input.
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/newt/classes/jogamp/newt/driver/linux/LinuxMouseTracker.java;hb=HEAD
Comment 1 Sven Gothel 2015-09-27 00:44:50 CEST
Expected behavior: All events received to a NEWT window:
  - shall be clipped to its window bounds,
    i.e. no exterior events shall be received

  - shall be relative coordinates to the window location
    on the screen. Those become absolute screen coordinates
    for fullscreen windows .. of course.