[Interest] [Qt3D] QAxisActionHandler axis value bounds

Sean Harmer sean.harmer at kdab.com
Mon Dec 14 14:11:28 CET 2015


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



More information about the Interest mailing list