I'm looking for a (nasal) function to change the view.
That's what I want:
When you press a joystick button the goes to left or right 90°. When you release this button it goes back to normal view or ev. to the previous angles of view.
That means a need a function to change an angle directly and another one to get the actual angles. I think there is a nasal function to realize something like that?!
It's actually doable from the joystick configuration files - it's probably already a Nasal function actually, as it's a common requirement. The main thing we need to know is, what your hardware is, and what sort of buttons you're talking about. Most people use a "hat" for views, and if you want to do that, we need to ascertain a few details - some hats are seen as an axis (or two axes actually), others as four buttons.
Oh, another thing - we could use this thread to demonstrate using some basic nasal to add a bit more 'flair', for example your view could move quickly round rather than jumping to the left if you preferred, to simulate the act of actually moving your head
I needed this function once to do really large screenshots by combining them out of smaller ones.
So I needed to move the view by an angle of my own choosing like 15 or 30 degrees. Seems I have several ways of doing that in my joystick config right now. I'm attaching the file here.