All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann Cantin <yann.cantin@laposte.net>
To: Jian-Jhong Ding <jj_ding@emc.com.tw>
Cc: linux-input@vger.kernel.org
Subject: Re: On the fly input_set_abs_params changes
Date: Mon, 16 Jul 2012 08:48:46 +0200	[thread overview]
Message-ID: <5003B94E.40402@laposte.net> (raw)
In-Reply-To: <87liiknv3b.fsf@emc.com.tw>

Hi, Jian-Jhong

Le 16/07/2012 07:17, Jian-Jhong Ding a écrit :
>> I'm wondering if it's ok to change min/max parameters after registration, and how
>> it should be handled by xorg's evdev.
> 
> I am really intrigued why you have to do this. Some specific feature of
> your device? Can you elaborate more on this?

A video projector project a computer screen on a whiteboard and an eBeam device is
placed on the whiteboard anywhere outside the image. A special pointer moved on the
whiteboard should act as a mouse device. The whole thing act like a giant touchscreen,
an interactive whiteboard.

The device send the pointer's coordinates in his own coordinate system (cartesian).
It can be place anywhere on the whiteboard, typically on a corner for the one i have.

Unlike fixed interactive whiteboard, as the eBeam can be placed anywhere, the coordinates
you got aren't mapped to screen coordinates even remotely (scaled, rotated and most of
the time subject to projection deformation : i plan to use a homography to retrieve screen
coordinates).

So, the driver need to be calibrated, and this can only be done when the device is
in place : get raw coordinate, compute transform, start mapping.

The simplest way to do this is to start the driver without coordinates transformation,
(input_set_abs_params set to raw axis, aka 0,0xFFFF, not corresponding to screen axis)
launch a calibration phase in user space, and reset input_set_abs_params to the computed ones.


-- 
Yann Cantin
A4FEB47F
--
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2012-07-16  6:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15 19:13 On the fly input_set_abs_params changes Yann Cantin
2012-07-16  5:17 ` Jian-Jhong Ding
2012-07-16  6:48   ` Yann Cantin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5003B94E.40402@laposte.net \
    --to=yann.cantin@laposte.net \
    --cc=jj_ding@emc.com.tw \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.