D0301
HTML Application SDK  A1.8
Public Member Functions | List of all members
MouseDevice Interface Reference

import"MouseDevicePlugin.idl";

Public Member Functions

void activateMouse ([in] Boolean activate)
 
Boolean isMouseAttached ()
 

Detailed Description

This is a class which implements global MouseDevice object.

Member Function Documentation

void MouseDevice.activateMouse ( [in] Boolean  activate)

Activates or deactivates Air mouse.

function activateMouse()
{
{
if(mouseState)
{
document.getElementById("appButtonId1").value = "Activate Mouse";
mouseState = 0;
Log("Mouse Device is deactivated!");
}
else
{
document.getElementById("appButtonId1").value = "Deactivate Mouse";
mouseState = 1;
Log("Mouse Device is activated!");
}
activateMouseInfo();
}
else
{
Log("There is no Mouse Device plugged in to TV !");
}
}
Parameters
activateboolean value for activating or deactivating
Boolean MouseDevice.isMouseAttached ( )

Returns Air mouse state that it is attached to display or not.

function isMouseAttached()
{
{
Log("Mouse Device is attached!");
}
else
{
Log("There is no Mouse Device plugged in to TV !");
}
}
Returns
status of air mouse

The documentation for this interface was generated from the following file: