blob: 51b40a1e604d9e0634ba07a54900e9cadabc8cdd [file] [log] [blame]
/*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Custom, not in any spec.
interface Camera3D {
// enum CameraAxes
//
const unsigned long DOM_CAMERA_ROLL = 0x00;
const unsigned long DOM_CAMERA_PITCH = 0x01;
const unsigned long DOM_CAMERA_YAW = 0x02;
void createKeyMapping(long keyCode, unsigned long cameraAxis,
float degrees_per_second);
void clearKeyMapping(long keyCode);
void clearAllKeyMappings();
// Resets the camera's orientation.
void reset();
};