Fix action.h according to our coding standards.
This commit is contained in:
@@ -1,13 +1,24 @@
|
|||||||
#ifndef __ACTION_H__
|
#ifndef __ACTION_H__
|
||||||
#define __ACTION_H__
|
#define __ACTION_H__
|
||||||
|
|
||||||
|
// Includes:
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "lufa/HIDClassCommon.h"
|
#include "lufa/HIDClassCommon.h"
|
||||||
#include "usb_composite_device.h"
|
#include "usb_composite_device.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
|
||||||
|
// Macros:
|
||||||
|
|
||||||
|
#define MOUSE_WHEEL_SPEED 1
|
||||||
|
#define MOUSE_WHEEL_DIVISOR 4
|
||||||
|
|
||||||
|
#define MOUSE_MAX_SPEED 10
|
||||||
|
#define MOUSE_SPEED_ACCEL_DIVISOR 50
|
||||||
|
|
||||||
|
// Typedefs:
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
KeyActionType_None,
|
KeyActionType_None,
|
||||||
KeyActionType_Keystroke,
|
KeyActionType_Keystroke,
|
||||||
@@ -59,12 +70,6 @@ typedef enum {
|
|||||||
TestAction_DisableLedDriverPwm,
|
TestAction_DisableLedDriverPwm,
|
||||||
} test_action_t;
|
} test_action_t;
|
||||||
|
|
||||||
#define MOUSE_WHEEL_SPEED 1
|
|
||||||
#define MOUSE_WHEEL_DIVISOR 4
|
|
||||||
|
|
||||||
#define MOUSE_MAX_SPEED 10
|
|
||||||
#define MOUSE_SPEED_ACCEL_DIVISOR 50
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t type;
|
uint8_t type;
|
||||||
union {
|
union {
|
||||||
@@ -95,6 +100,8 @@ typedef struct {
|
|||||||
};
|
};
|
||||||
} __attribute__ ((packed)) key_action_t;
|
} __attribute__ ((packed)) key_action_t;
|
||||||
|
|
||||||
|
// Variables:
|
||||||
|
|
||||||
extern void UpdateActiveUsbReports();
|
extern void UpdateActiveUsbReports();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user