0

Camera Controller - key board input for panning

Anonymous 5 years ago 0
This discussion was imported from CodePlex

Tungsten wrote at 2012-04-26 18:26:

Firstly, thank you for the great work.

 

My question relates to the behavior of the keyboard panning (shift-arrows).

Clicking left causes the camera to move to the right (model moves to the left).  I realize this is is just a difference in perspective, however feedback I have received indicates that this is counter-intuitive to them.  These folk are video game players in which the more common pan would yield the camera moving in the same direction.

 

Would it be possible to have an inversion property added?  I investigated stealing keyboard events or overriding gestures, but the camera controller is attaching itself to the keydown event directly.  The only option I found is to disable panning, however I still need panning to occur via addPanForce (which I invoke directly from an onscreen controller I created).

 

Thanks.


objo wrote at 2012-04-26 23:07:

I added a LeftRightRotationSensitivity property. Try to set this to -1 to invert the keys. 


Tungsten wrote at 2012-04-27 00:17:

Thank you for the quick response.

 

The LeftRightPanSensitivity and UpDownPanSensivity are exactly what I need, however did you intend to not add the template bindings for all 5 new sensitivity properties (the 2 rotations were added).   I am applying the properties to the CameraController directly for now.


objo wrote at 2012-04-27 06:48:

Of course, I had forgotten the 3 last ones. Thank you, fix submitted.