build: add XInput2 library dependency for raw key event monitoring
This commit is contained in:
@@ -203,8 +203,32 @@ typedef struct {
|
||||
bool desktop_shown;
|
||||
Window desktop_minimized[MAX_CLIENTS];
|
||||
int desktop_minimized_count;
|
||||
|
||||
float ambient_phase;
|
||||
float ambient_speed;
|
||||
long typing_activity_time;
|
||||
|
||||
unsigned long key_press_count;
|
||||
long key_delete_flicker_time;
|
||||
int xi2_opcode;
|
||||
double mouse_distance_pixels;
|
||||
int last_mouse_x;
|
||||
int last_mouse_y;
|
||||
bool mouse_tracking_initialized;
|
||||
} DWNState;
|
||||
|
||||
#define PHASE_OFFSET_PANEL_BG 0.0f
|
||||
#define PHASE_OFFSET_WORKSPACES 0.8f
|
||||
#define PHASE_OFFSET_TASKBAR 1.6f
|
||||
#define PHASE_OFFSET_CLOCK 2.4f
|
||||
#define PHASE_OFFSET_STATS 3.2f
|
||||
#define PHASE_OFFSET_TOP_MEM 4.0f
|
||||
#define PHASE_OFFSET_DECORATIONS 4.8f
|
||||
#define PHASE_OFFSET_SYSTRAY 5.6f
|
||||
#define PHASE_OFFSET_NEWS 1.2f
|
||||
#define PHASE_OFFSET_KEY_COUNTER 5.2f
|
||||
#define PHASE_OFFSET_MOUSE_DIST 5.8f
|
||||
|
||||
extern DWNState *dwn;
|
||||
|
||||
int dwn_init(void);
|
||||
|
||||
@@ -59,6 +59,8 @@ unsigned long adjust_color_for_background(unsigned long color, unsigned long bg)
|
||||
unsigned long interpolate_color(unsigned long from, unsigned long to, float progress);
|
||||
unsigned long dim_color(unsigned long color, float factor);
|
||||
unsigned long glow_color(unsigned long base, float phase);
|
||||
unsigned long ambient_glow_bg(unsigned long base, float phase);
|
||||
unsigned long ambient_glow_accent(unsigned long base, float phase);
|
||||
|
||||
long get_time_ms(void);
|
||||
void sleep_ms(int ms);
|
||||
|
||||
Reference in New Issue
Block a user