diff options
author | Rami Santina <[email protected]> | 2010-10-18 23:06:50 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2010-10-18 23:06:50 +0300 |
commit | c74be6eeeb273cd7530ac7e94c3128cb5fa1e420 (patch) | |
tree | ac8169f6f4e6a5116ba3dedc67abf66df7a5d24e /src/newt/native/InputEvent.h | |
parent | 735ebb60ead9996106dfcb958ddfbb6b00b407fd (diff) |
Added Screen Rotation manipulation API (with X11 impl)
Added screen rotation change capability with impl for X11 (using Xrandr)
com.jogamp.newt.Screen: added 2 methods which cover screen roation lifecycle
setScreenRotation(int rot): Change the Screen Rotation to
one of the rotations defined in ScreenMode, namely:
ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
int getCurrentScreenRotation(): Get the Current screen rotation
returns -1 if not implemented natively.
+++++++++++++++++++++++++
Notes:
1- At init the original rotation is called natively and cached,
when screen is destroyed the rotation is reverted.
2- On X11 with Nvidia: you need to edit /etc/X11/xorg.conf:
Add the following line:
Option "RandRRotation" "on"
in Section "Device" after BoardName.
+++++++++++++++
Added TestScreenMode02NEWT which includes 4 tests
1- Rotate 90
2- Rotate 180
3- Rotate 270
4- Rotate with screen mode change
should fail if screen rotation not implemented natively.
(4) withh fail if screen mode not impl natively as well.
Diffstat (limited to 'src/newt/native/InputEvent.h')
0 files changed, 0 insertions, 0 deletions