Remove __unused_bits fields and outdated comments.

This commit is contained in:
László Monda
2017-03-03 21:51:11 +01:00
parent c887b5e309
commit b6cc59125d

View File

@@ -8,18 +8,6 @@
#include "module.h" #include "module.h"
// Keyboard layout is a 2D array of scan codes.
//
// First dimension is the Key ID of a given key. Key IDs are the indices of the
// of the active keys of the key_matrix_t structure. In case of left half, an
// offset of 35 is added.
//
// For each Key ID, there are 4 different possible scan codes:
// - default, when no modifiers are pressed
// - mod layer
// - fn layer
// - mod+fn layer
typedef enum { typedef enum {
KEY_ACTION_NONE, KEY_ACTION_NONE,
KEY_ACTION_BASIC_KEYSTROKE, KEY_ACTION_BASIC_KEYSTROKE,
@@ -71,21 +59,18 @@ typedef struct {
uint8_t key; uint8_t key;
} __attribute__ ((packed)) keystroke; } __attribute__ ((packed)) keystroke;
struct { struct {
uint8_t buttonActions; // bitfield uint8_t buttonActions;
uint8_t scrollActions; // bitfield uint8_t scrollActions;
uint8_t moveActions; // bitfield uint8_t moveActions;
} __attribute__ ((packed)) mouse; } __attribute__ ((packed)) mouse;
struct { struct {
uint16_t __unused_bits:15; bool isToggle;
bool isToggle:1;
uint8_t layer; uint8_t layer;
} __attribute__ ((packed)) switchLayer; } __attribute__ ((packed)) switchLayer;
struct { struct {
uint16_t __unused_bits;
uint8_t keymap; uint8_t keymap;
} __attribute__ ((packed)) switchKeymap; } __attribute__ ((packed)) switchKeymap;
struct { struct {
uint8_t __unused_bits;
uint16_t index; uint16_t index;
} __attribute__ ((packed)) playMacro; } __attribute__ ((packed)) playMacro;
}; };