XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
devinput.h File Reference
#include <stdint.h>
#include <aurora.h>
Include dependency graph for devinput.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _au_input_msg_
 

Macros

#define LEFT_CLICK   0x01
 
#define RIGHT_CLICK   0x02
 
#define MIDDLE_CLICK   0x04
 
#define MOUSE_SCROLL_UP   0x05
 
#define MOUSE_SCROLL_DOWN   0x06
 
#define AU_INPUT_MOUSE   1
 
#define AU_INPUT_KEYBOARD   2
 
#define AU_INPUT_TOUCH   3
 
#define MOUSE_IOCODE_SETPOS   10
 
#define NUM_MOUSE_PACKETS   20
 
#define NUM_KEYBOARD_PACKETS   512
 

Typedefs

typedef struct _au_input_msg_ AuInputMessage
 

Functions

void AuDevInputInitialise ()
 
AU_EXTERN AU_EXPORT void AuDevReadMice (AuInputMessage *inputmsg)
 
AU_EXTERN AU_EXPORT void AuDevWriteMice (AuInputMessage *outmsg)
 
AU_EXTERN AU_EXPORT void AuDevReadKybrd (AuInputMessage *inputmsg)
 
AU_EXTERN AU_EXPORT void AuDevWriteKybrd (AuInputMessage *outmsg)
 

Macro Definition Documentation

◆ AU_INPUT_KEYBOARD

#define AU_INPUT_KEYBOARD   2

◆ AU_INPUT_MOUSE

#define AU_INPUT_MOUSE   1

◆ AU_INPUT_TOUCH

#define AU_INPUT_TOUCH   3

◆ LEFT_CLICK

#define LEFT_CLICK   0x01

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ MIDDLE_CLICK

#define MIDDLE_CLICK   0x04

◆ MOUSE_IOCODE_SETPOS

#define MOUSE_IOCODE_SETPOS   10

◆ MOUSE_SCROLL_DOWN

#define MOUSE_SCROLL_DOWN   0x06

◆ MOUSE_SCROLL_UP

#define MOUSE_SCROLL_UP   0x05

◆ NUM_KEYBOARD_PACKETS

#define NUM_KEYBOARD_PACKETS   512

◆ NUM_MOUSE_PACKETS

#define NUM_MOUSE_PACKETS   20

◆ RIGHT_CLICK

#define RIGHT_CLICK   0x02

Typedef Documentation

◆ AuInputMessage

Function Documentation

◆ AuDevInputInitialise()

void AuDevInputInitialise ( )
extern

◆ AuDevReadKybrd()

AU_EXTERN AU_EXPORT void AuDevReadKybrd ( AuInputMessage inputmsg)

◆ AuDevReadMice()

AU_EXTERN AU_EXPORT void AuDevReadMice ( AuInputMessage inputmsg)

◆ AuDevWriteKybrd()

AU_EXTERN AU_EXPORT void AuDevWriteKybrd ( AuInputMessage outmsg)

◆ AuDevWriteMice()

AU_EXTERN AU_EXPORT void AuDevWriteMice ( AuInputMessage outmsg)