Mercurial > louis > kiibohd-controller
comparison Output/pjrcUSB/output_com.c @ 322:cc09f7e858bf
Adding None capability.
- Required for 0.3b update of the KLL compiler.
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sat, 02 May 2015 14:29:27 -0700 |
parents | a6bafeb5fecf |
children | 136e47478441 |
comparison
equal
deleted
inserted
replaced
321:18c3c4924f20 | 322:cc09f7e858bf |
---|---|
227 // Set consumer control code | 227 // Set consumer control code |
228 USBKeys_ConsCtrl = *(uint16_t*)(&args[0]); | 228 USBKeys_ConsCtrl = *(uint16_t*)(&args[0]); |
229 } | 229 } |
230 | 230 |
231 | 231 |
232 // Ignores the given key status update | |
233 // Used to prevent fall-through, this is the None keyword in KLL | |
234 void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ) | |
235 { | |
236 // Display capability name | |
237 if ( stateType == 0xFF && state == 0xFF ) | |
238 { | |
239 print("Output_noneSend()"); | |
240 return; | |
241 } | |
242 | |
243 // Nothing to do, because that's the point :P | |
244 } | |
245 | |
246 | |
232 // Sends a System Control code to the USB Output buffer | 247 // Sends a System Control code to the USB Output buffer |
233 void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ) | 248 void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ) |
234 { | 249 { |
235 // Display capability name | 250 // Display capability name |
236 if ( stateType == 0xFF && state == 0xFF ) | 251 if ( stateType == 0xFF && state == 0xFF ) |