#include <stdio.h>
#include <mouse_port.h>
#include <char_mouse.h>
#include <mouse_proto.h>
Go to the source code of this file.
Data Structures | |
struct | ps2packet_t |
Defines | |
#define | BUFSIZE 3 |
#define | PS2_MOUSE_ACK 0xfa |
#define | PS2_MOUSE_OUT_INIT 0xf4 |
Functions | |
static int | bit9toint (int sign, unsigned char data) |
Convert 9-bit 2-complement signed number to integer. | |
int | mouse_proto_init (void) |
void | mouse_proto_parse_byte (int data) |
Process mouse data. | |
Variables | |
static ps2packet_t | buf |
static int | bufpos = 0 |
static int | leftbtn = 0 |
static int | middlebtn = 0 |
static int | rightbtn = 0 |
Definition in file ps2.c.