Click or drag to resize

IDisplayDevice Interface

Represents a device which is used to display touch interface. Incapsulating such properties as DPI.

Namespace:  TouchScript.Devices.Display
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public interface IDisplayDevice

The IDisplayDevice type exposes the following members.

Properties
  NameDescription
Public propertyDPI
DPI of the game based on NativeResolution and NativeDPI.
Public propertyName
Name of the display device.
Public propertyNativeDPI
Native DPI of the display device.
Public propertyNativeResolution
Native resolution of the display device.
Top
Methods
  NameDescription
Public methodUpdateDPI
Forces to recalculate DPI.
Top
Remarks

TouchScript uses display device to calculate gesture properties based on device's DPI. This makes it possible to have the same experience on mobile devices with high DPI and large touch surfaces which have low DPI.

Current instance of IDisplayDevice can be accessed via DisplayDevice.

See Also