Rev 2072 | Rev 2116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2072 | Rev 2114 | ||
|---|---|---|---|
| Line 149... | Line 149... | ||
| 149 | function IROut_SendBurst(alias_name, remote_name, button_name) |
149 | function IROut_SendBurst(alias_name, remote_name, button_name) |
| 150 | { |
150 | { |
| 151 | return IROut_Send(alias_name, remote_name, button_name, "Burst"); |
151 | return IROut_Send(alias_name, remote_name, button_name, "Burst"); |
| 152 | } |
152 | } |
| 153 | Console_RegisterCommand(IROut_SendBurst, IROut_StartSendAutoComplete); |
153 | Console_RegisterCommand(IROut_SendBurst, IROut_StartSendAutoComplete); |
| - | 154 | ||
| - | 155 | function IROut_SendDuration(alias_name, remote_name, button_name, duration_ms) |
|
| - | 156 | { |
|
| - | 157 | IROut_Send(alias_name, remote_name, button_name, "Pressed"); |
|
| - | 158 | Timer_SetTimer(function(timer) {IROut_StopSend(alias_name);}, duration_ms, false); |
|
| - | 159 | } |
|
| - | 160 | Console_RegisterCommand(IROut_SendDuration, IROut_StartSendAutoComplete); |
|
| 154 | 161 | ||