Panel |
---|
borderColor | #3D3D3D |
---|
bgColor | #F4F4F4 |
---|
titleColor | #3D3D3D |
---|
borderWidth | 0 |
---|
titleBGColor | #3D3D3D |
---|
borderStyle | solid |
---|
|
ON THIS PAGE |
The pointer object provides information about screen-input devices connected to the player.
pointer IDL
Code Block |
---|
language | js |
---|
title | pointer IDL |
---|
collapse | true |
---|
|
interface Pointer {
Promise<bool> isMousePresent();
Promise<bool> isMultiTouchPresent();
Promise<void> enableCursor(bool);
}; |
...
Display a cursor if the parameter passed is true
.
Example
Code Block |
---|
|
var PointerClass = require("@brightsign/pointer");
var pointer = new PointerClass();
pointer.isMousePresent().then(
function(data) {
console.log("***Mouse Present***");
console.log(JSON.stringify(data));
})
.catch(
function(data) {
console.log(JSON.stringify(data));
});
pointer.isMultiTouchPresent().then(
function(data) {
console.log("***MultiTouch Present***");
console.log(JSON.stringify(data));
})
.catch(
function(data) {
console.log(JSON.stringify(data));
}); |
...