Leadwerks Game Engine support for Oculus Rift has entered beta, with support for the DK1 and DK2 virtual reality headsets. To enable virtual reality mode in your game, just add the Window.VRDisplay flag when your game's window is created, and the rest is automatic:
Or in C++:
New Commands
Four new commands will help you refine your VR experience:
Use this to modify the way your controls work. For example, use the player's head rotation to change the direction they move in when a key is pressed. You do not need to rotate the camera yourself, as this is done automatically.
This command would be useful if you're doing any line-of-sight tests with the player.
Recenters the headset orientation according to the current position and rotation.
Disable the Oculus warning popup, typically by pressing space or another key.
Beta Limitations
Oculus Rift beta support is presently only available for Windows, and does not yet allow 2D drawing in VR mode. We expect to have our implementation complete, for Windows and Linux, by the end of the year.