pcjs/docs/pcx86/mouse/README.md
2016-05-23 14:34:57 -07:00

52 lines
897 B
Markdown

---
layout: page
title: PCx86 <mouse> Element
permalink: /docs/pcx86/mouse/
redirect_from:
- /docs/pcjs/mouse/
---
PCx86 Mouse Component
---
Format
---
```xml
<mouse>...</mouse>
```
Purpose
---
Creates an instance of the Mouse component, which simulates the original Microsoft Serial Mouse.
Attributes
---
* *serial* (required)
Specifies the id of the Serial component that the mouse must be connected to.
As support for more types of mouse hardware are added, new attributes will be added. Also supports the attributes
of *[Component](/docs/pcx86/component/)*.
Bindings
---
None.
Example
---
```xml
<mouse serial="com1"/>
```
Output
---
```html
<div id="..." class="pc-mouse pc-component">
<div class="pc-container">
<div class="pcx86-mouse" data-value="id:'...',name:'...',serial:'...'>
</div>
</div>
</div>
```
[Return to [PCx86 Documentation](..)]