astyle to get us closer to cpplint-clean

pull/389/head
Jesse Vincent 8 years ago
parent a16411ff93
commit 3097fd0745
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -93,9 +93,10 @@ OneShot::mask (byte row, byte col) {
if (col >= 8) { if (col >= 8) {
col = col - 8; col = col - 8;
rightMask |= SCANBIT(row, col); rightMask |= SCANBIT(row, col);
} else } else {
leftMask |= SCANBIT(row, col); leftMask |= SCANBIT(row, col);
} }
}
void void
OneShot::unmask(byte row, byte col) { OneShot::unmask(byte row, byte col) {
@ -105,9 +106,10 @@ OneShot::unmask (byte row, byte col) {
if (col >= 8) { if (col >= 8) {
col = col - 8; col = col - 8;
rightMask &= ~(SCANBIT(row, col)); rightMask &= ~(SCANBIT(row, col));
} else } else {
leftMask &= ~(SCANBIT(row, col)); leftMask &= ~(SCANBIT(row, col));
} }
}
bool bool
OneShot::isMasked(byte row, byte col) { OneShot::isMasked(byte row, byte col) {
@ -117,9 +119,10 @@ OneShot::isMasked (byte row, byte col) {
if (col >= 8) { if (col >= 8) {
col = col - 8; col = col - 8;
return rightMask & SCANBIT(row, col); return rightMask & SCANBIT(row, col);
} else } else {
return leftMask & SCANBIT(row, col); return leftMask & SCANBIT(row, col);
} }
}
Key Key
OneShot::eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState) { OneShot::eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState) {

@ -29,13 +29,13 @@ class OneShot : public KaleidoscopePlugin {
public: public:
OneShot(void); OneShot(void);
virtual void begin (void) final; void begin(void) final;
static bool isActive(void); static bool isActive(void);
static void cancel(bool withStickies); static void cancel(bool withStickies);
static void cancel(void) { static void cancel(void) {
cancel(false); cancel(false);
}; }
static uint16_t timeOut; static uint16_t timeOut;
static uint16_t holdTimeOut; static uint16_t holdTimeOut;

Loading…
Cancel
Save