Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Katsuyoshi Nakanishi

Pages: [1]
1
Zaurus - pdaXrom / Ir Keyboard Drivers - Alpha Release
« on: November 22, 2005, 04:21:30 am »
Hi zaurus_usa, Kopsis,

I had the same problem as (1) mentioned by zaurus_usa, and looked at the code.
It seems last_keyup wasn't cleared and it was filtering keyup signal when the same key was *actually* repeated. I changed
/usr/share/zkbdd/drivers/pocketop.lua as follows (from line 146):

from:
Code: [Select]
    -- filter final keyup signal
    if key_down == 0 then
  if key == last_keyup then
      last_keyup = 0
      return 0, key_down
  end
  last_keyup = key;
    end
to:
Code: [Select]
    -- filter final keyup signal
    if key_down == 0 then
  if key == last_keyup then
      last_keyup = 0
      return 0, key_down
  end
  last_keyup = key;
    elseif key == last_keyup
  last_keyup = 0;
    end
and now it seems to be working correctly.
---
Katsu

Pages: [1]