Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:signals [2014/08/12 00:31]
sangar
component:signals [2016/05/25 20:51]
xarses update to match actual fields returned
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 76: Line 76:
 ---------------------------- ----------------------------
  
-- `redstone_changed(address:​ string, side: number)` ​  +- `redstone_changed(address:​ string, side: number, oldValue: number, newValue: number)` ​  
-  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.  
 + 
 +Note: There is no indication of the bundle/​channel number from T2 cards or the I/O Block. [[https://​github.com/​MightyPirates/​OpenComputers/​issues/​1385|GH issue]]
  
 Motion Sensor Block Motion Sensor Block