This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
component:signals [2014/07/10 16:15] vexatos |
component:signals [2014/09/08 20:38] sangar [Screen] |
||
---|---|---|---|
Line 39: | Line 39: | ||
------ | ------ | ||
- | - `screen_resize(screenAddress: string, newWidth: number, newHeight: number)` | + | - `screen_resized(screenAddress: string, newWidth: number, newHeight: number)` |
This signal is queued by [[block:screen|screen]] when their resolution changes, for example because it is manually set via the [[component:gpu|GPU]]. The address is the address of the screen the queued the signal. | This signal is queued by [[block:screen|screen]] when their resolution changes, for example because it is manually set via the [[component:gpu|GPU]]. The address is the address of the screen the queued the signal. | ||
- `touch(screenAddress: string, x: number, y: number, button: number, playerName: string)` | - `touch(screenAddress: string, x: number, y: number, button: number, playerName: string)` | ||
Line 79: | Line 79: | ||
This signal is queued by [[component:redstone|redstone components]] when an incoming signal changes. The address is either that of the [[block:redstone_io|Redstone I/O block]] or that of the computer with the [[item:redstone_card|redstone card]] that generated the signal. The side is one of the [[api:sides|sides]] constants and indicates on which side the signal changed. This is relative to the container of the component, so for computers and robots this depends on which way they are facing. For Redstone I/O blocks this is always the absolute side. | This signal is queued by [[component:redstone|redstone components]] when an incoming signal changes. The address is either that of the [[block:redstone_io|Redstone I/O block]] or that of the computer with the [[item:redstone_card|redstone card]] that generated the signal. The side is one of the [[api:sides|sides]] constants and indicates on which side the signal changed. This is relative to the container of the component, so for computers and robots this depends on which way they are facing. For Redstone I/O blocks this is always the absolute side. | ||
+ | Motion Sensor Block | ||
+ | ------------------- | ||
+ | |||
+ | - `motion(address:string, relativeX:number, relativeY:number, relativeZ:number[, entityName:string])` | ||
+ | Fired by the [[block:motion_sensor|motion sensor]] when a living entity in its line of sight moves faster than the configured sensitivity. | ||
Network Cards | Network Cards |