phaser/src/device/index.js

42 lines
1.4 KiB
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2019-01-15 16:20:22 +00:00
* @copyright 2019 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
2018-02-12 16:01:20 +00:00
*/
// This singleton is instantiated as soon as Phaser loads,
// before a Phaser.Game instance has even been created.
// Which means all instances of Phaser Games can share it,
// without having to re-poll the device all over again
2018-01-31 13:54:44 +00:00
/**
* @namespace Phaser.Device
2018-03-21 14:40:30 +00:00
* @since 3.0.0
*/
/**
* @typedef {object} Phaser.DeviceConf
*
* @property {Phaser.Device.OS} os - The OS Device functions.
* @property {Phaser.Device.Browser} browser - The Browser Device functions.
* @property {Phaser.Device.Features} features - The Features Device functions.
* @property {Phaser.Device.Input} input - The Input Device functions.
* @property {Phaser.Device.Audio} audio - The Audio Device functions.
* @property {Phaser.Device.Video} video - The Video Device functions.
* @property {Phaser.Device.Fullscreen} fullscreen - The Fullscreen Device functions.
* @property {Phaser.Device.CanvasFeatures} canvasFeatures - The Canvas Device functions.
2018-01-31 13:54:44 +00:00
*/
2016-11-25 04:00:15 +00:00
module.exports = {
os: require('./OS'),
browser: require('./Browser'),
features: require('./Features'),
input: require('./Input'),
audio: require('./Audio'),
video: require('./Video'),
fullscreen: require('./Fullscreen'),
canvasFeatures: require('./CanvasFeatures')
2016-11-25 04:00:15 +00:00
};