make the indents match the arduino indents

pull/18/head
Jesse Vincent 11 years ago
parent 7e6d0a965c
commit eb20e9febb

@ -128,7 +128,7 @@ const u8 _hidReportDescriptor[] = {
0xC0 // end collection
#endif
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
0x09, 0x01, // USAGE (Consumer Control)
0xa1, 0x01, // COLLECTION (Application)
0x85, 0x04, // REPORT_ID (4)
@ -154,7 +154,7 @@ const u8 _hidReportDescriptor[] = {
0x0a, 0x24, 0x02, // USAGE (www back) 0x10
0x81, 0x62, // INPUT (Data,Var,Abs,NPrf,Null)
0xc0,
// System Control Descriptor
// System Control Descriptor
0x05, 0x01, /* Usage Page (Generic Desktop) */
0x09, 0x80, /* Usage (System Control) */
0xA1, 0x01, /* Collection (Application) */
@ -323,35 +323,65 @@ void ConsumerControl_::mute (void){
sendReport(0x01, 0);
}
void ConsumerControl_::volumeUp (void)
{ sendReport(0x02, 0); }
{
sendReport(0x02, 0);
}
void ConsumerControl_::volumeDown (void)
{ sendReport(0x03, 0); }
{
sendReport(0x03, 0);
}
void ConsumerControl_::playPause (void)
{ sendReport(0x04, 0); }
{
sendReport(0x04, 0);
}
void ConsumerControl_::stop (void)
{ sendReport(0x05, 0); }
{
sendReport(0x05, 0);
}
void ConsumerControl_::previousTrack (void)
{ sendReport(0x06, 0); }
{
sendReport(0x06, 0);
}
void ConsumerControl_::nextTrack (void)
{ sendReport(0x07, 0); }
{
sendReport(0x07, 0);
}
void ConsumerControl_::mail (void)
{ sendReport(0x08, 0); }
{
sendReport(0x08, 0);
}
void ConsumerControl_::calculator (void)
{ sendReport(0x09, 0); }
{
sendReport(0x09, 0);
}
void ConsumerControl_::wwwSearch (void)
{ sendReport(0x0a, 0); }
{
sendReport(0x0a, 0);
}
void ConsumerControl_::wwwHome (void)
{ sendReport(0x0b, 0); }
{
sendReport(0x0b, 0);
}
void ConsumerControl_::wwwFavorites (void)
{ sendReport(0x0c, 0); }
{
sendReport(0x0c, 0);
}
void ConsumerControl_::wwwRefresh (void)
{ sendReport(0x0d, 0); }
{
sendReport(0x0d, 0);
}
void ConsumerControl_::wwwStop (void)
{ sendReport(0x0e, 0); }
{
sendReport(0x0e, 0);
}
void ConsumerControl_::wwwForward (void)
{ sendReport(0x0f, 0); }
{
sendReport(0x0f, 0);
}
void ConsumerControl_::wwwBack (void)
{ sendReport(0x10, 0); }
{
sendReport(0x10, 0);
}
//================================================================================
//================================================================================

@ -140,10 +140,11 @@ extern Keyboard_ Keyboard;
//================================================================================
//================================================================================
class ConsumerControl_ {
private:
class ConsumerControl_
{
private:
void sendReport(uint8_t cmd, uint8_t val);
public:
public:
ConsumerControl_(void);
void begin(void);
void end(void);
@ -163,8 +164,6 @@ class ConsumerControl_ {
void wwwStop (void);
void wwwForward (void);
void wwwBack (void);
};
extern ConsumerControl_ ConsumerControl;

Loading…
Cancel
Save