Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor fix

...

Returns true if a multitouch device is connected to the player.

Example

Code Block
languagejs
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));
        });