Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
input.c File Reference
#include <stddef.h>
#include "input.h"
#include "log.h"
#include "menu.h"
#include "settings.h"
#include "queues.h"
+ Include dependency graph for input.c:

Go to the source code of this file.

Macros

#define BTN_LEFT   (0x110)
 
#define BTN_RIGHT   (0x111)
 
#define BTN_MIDDLE   (0x112)
 
#define BTN_TOUCH   (0x14a)
 

Functions

int get_notification_clickable_height (struct notification *n, bool first, bool last)
 
struct notificationget_notification_at (const int y)
 
void input_handle_click (unsigned int button, bool button_down, int mouse_x, int mouse_y)
 Handle incoming mouse click events.
 

Detailed Description

License
BSD-3-Clause

Definition in file input.c.

Macro Definition Documentation

◆ BTN_LEFT

#define BTN_LEFT   (0x110)

Definition at line 12 of file input.c.

◆ BTN_MIDDLE

#define BTN_MIDDLE   (0x112)

Definition at line 14 of file input.c.

◆ BTN_RIGHT

#define BTN_RIGHT   (0x111)

Definition at line 13 of file input.c.

◆ BTN_TOUCH

#define BTN_TOUCH   (0x14a)

Definition at line 15 of file input.c.

Function Documentation

◆ get_notification_at()

struct notification * get_notification_at ( const int y)

Definition at line 40 of file input.c.

◆ get_notification_clickable_height()

int get_notification_clickable_height ( struct notification * n,
bool first,
bool last )

Definition at line 24 of file input.c.

◆ input_handle_click()

void input_handle_click ( unsigned int button,
bool button_down,
int mouse_x,
int mouse_y )

Handle incoming mouse click events.

Parameters
buttoncode, A linux input event code
button_downState of the button
mouse_xX-position of the mouse, relative to the window
mouse_yY-position of the mouse, relative to the window

Definition at line 67 of file input.c.