title: Adb shell getevent method returns twice the value for X and Y on Nexus 4
body: <p>I am currently trying to generate a complex gesture via the <code>sendevent</code> command of adb shell. In order to replay a gesture, I recorded the events via the <code>getevent</code> method of adb. Here is a sample of a simple tap on the bottom right of my Nexus 4 screen.</p>
  
  <pre><code>/dev/input/event2: 0003 0039 00000059
  /dev/input/event2: 0003 0035 000005ff
  /dev/input/event2: 0003 0036 000008e6
  /dev/input/event2: 0003 003a 0000002d
  /dev/input/event2: 0000 0000 00000000
  /dev/input/event2: 0003 0039 ffffffff
  /dev/input/event2: 0000 0000 00000000
  </code></pre>
  
  <p>Converted into decimal values (for the <code>sendevent</code> method), it makes: </p>
  
  <pre><code>/dev/input/event2: 3 57 89
  /dev/input/event2: 3 53 1535
  /dev/input/event2: 3 54 2278
  /dev/input/event2: 3 58 45
  /dev/input/event2: 0 0 0
  /dev/input/event2: 3 57 -1
  /dev/input/event2: 0 0 0
  </code></pre>
  
  <p>As you can see, the value for X (ie the 53 code on line 2) is 1535 and the value for Y (the code 54 on line 3) is 2278.</p>
  
  <p>How can this be possible, as my Nexus 4 screen size is only of 768*1280 ? It seems to be multiplied by a factor 2 comparing to the actual size... This is not happening when I do the same thing on a Nexus 5.</p>
  
  <p>Thanks for the help on this one, it drives me crazy ! ^^</p>