<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1227</bug_id>
          
          <creation_ts>2015-09-23 11:18:55 +0200</creation_ts>
          <short_desc>LinuxEventDeviceTracker reports misaligned relative Mouse Coordinates when using NEWT w/ RaspPi 7&quot; TFT</short_desc>
          <delta_ts>2019-03-29 14:11:39 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>embedded</component>
          <version>tbd</version>
          <rep_platform>embedded_arm</rep_platform>
          <op_sys>linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xerxes Rånby">xerxes</reporter>
          <assigned_to name="Xerxes Rånby">xerxes</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5200</commentid>
    <comment_count>0</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2015-09-23 11:18:55 +0200</bug_when>
    <thetext>On 8 sept 2015 Raspberry Pi foundation announced an 7&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5261</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-09-27 00:44:50 +0200</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>