Modules/USB - Working on HID support (and fixed some little bugs)
[tpg/acess2.git] / KernelLand / Modules / USB / HID / mouse.c
1 /*
2  * Acess2 USB Stack HID Driver
3  * - By John Hodge (thePowersGang)
4  *
5  * mouse.c
6  * - USB Mouse driver
7  */
8 #define DEBUG   0
9 #include <acess.h>
10 #include "hid_reports.h"
11 #include <fs_devfs.h>
12
13
14 // === PROTOTYES ===
15 tHID_ReportCallbacks    *HID_Mouse_Report_Collection(tUSBInterface *Dev, tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local, Uint32 Value);
16 void    HID_Mouse_Report_Input(tUSBInterface *Dev, tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local, Uint32 Value);
17 void    HID_Mouse_Report_Output(tUSBInterface *Dev, tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local, Uint32 Value);
18 void    HID_Mouse_Report_Feature(tUSBInterface *Dev, tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local, Uint32 Value);
19
20 // === GLOBALS ===
21 tDevFS_Driver   gHID_Mouse_DevFS = {
22         .Name = "USBKeyboard",
23 };
24 tHID_ReportCallbacks    gHID_Mouse_ReportCBs = {
25         .Collection = HID_Mouse_Report_Collection,
26         .Input = HID_Mouse_Report_Input,
27         .Output = HID_Mouse_Report_Output,
28         .Feature = HID_Mouse_Report_Feature
29 };
30
31 // === CODE ===
32 tHID_ReportCallbacks *HID_Mouse_Report_Collection(
33         tUSBInterface *Dev,
34         tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local,
35         Uint32 Value
36         )
37 {
38         return &gHID_Mouse_ReportCBs;
39 }
40
41 void HID_Mouse_Report_Input(
42         tUSBInterface *Dev,
43         tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local,
44         Uint32 Value
45         )
46 {
47         
48 }
49
50 void HID_Mouse_Report_Output(
51         tUSBInterface *Dev,
52         tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local,
53         Uint32 Value
54         )
55 {
56         
57 }
58
59 void HID_Mouse_Report_Feature(
60         tUSBInterface *Dev,
61         tHID_ReportGlobalState *Global, tHID_ReportLocalState *Local,
62         Uint32 Value
63         )
64 {
65         
66 }
67

UCC git Repository :: git.ucc.asn.au