[Interest] [Qt3D] QAxisActionHandler axis value bounds

Nye kshegunov at gmail.com
Mon Dec 14 16:36:55 CET 2015


Hello Sean,
Thanks, that mostly clears things up. Only one additional question:
How are they normalized, to the window/opengl surface size that I have
passed to the aspect engine?

Kind regards.

On Mon, Dec 14, 2015 at 3:11 PM, Sean Harmer <sean.harmer at kdab.com> wrote:

> On Monday 14 Dec 2015 12:30:40 Nye wrote:
> > Hello,
> > I understood (by trial and error) that in the axisValueChanged signal I
> get
> > a relative offset. I incorrectly assumed it was an absolute value. Is it
> > scaled or bound somehow, in example to the screen resolution, or is the
> > value absolute (I'm using it with a mouse device)? Additionally, I'd like
> > to know what is the measurement used, does it come in pixels, or some
> > arbitrary units?
>
> The values are normalised units [-1, 1]. How these are mapped from pixel
> offsets reported by the windowing system is controlled by the sensitivity
> property on the MouseController.
>
> Cheers,
>
> Sean
>
> --
> Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
> KDAB (UK) Ltd, a KDAB Group company
> Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
> Mobile: +44 (0)7545 140604
> KDAB - Qt Experts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151214/75fc3c3b/attachment.html>


More information about the Interest mailing list