Release 970120
[wine] / multimedia / joystick.c
1 /*
2  * MMSYTEM functions
3  *
4  * Copyright 1993 Martin Ayotte
5  */
6
7 #include <unistd.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <fcntl.h>
12 #include <sys/ioctl.h>
13 #include "windows.h"
14 #include "ldt.h"
15 #include "user.h"
16 #include "driver.h"
17 #include "mmsystem.h"
18 #include "stddebug.h"
19 #include "debug.h"
20
21 /**************************************************************************
22  *                              JoyGetNumDevs           [MMSYSTEM.101]
23  */
24 WORD JoyGetNumDevs(void)
25 {
26     fprintf(stdnimp, "EMPTY STUB !!! JoyGetNumDevs();\n");
27     return 0;
28 }
29
30 /**************************************************************************
31  *                              JoyGetDevCaps           [MMSYSTEM.102]
32  */
33 WORD JoyGetDevCaps(WORD wID, LPJOYCAPS lpCaps, WORD wSize)
34 {
35     fprintf(stdnimp, "EMPTY STUB !!! JoyGetDevCaps(%04X, %p, %d);\n",
36             wID, lpCaps, wSize);
37     return MMSYSERR_NODRIVER;
38 }
39
40 /**************************************************************************
41  *                              JoyGetPos               [MMSYSTEM.103]
42  */
43 WORD JoyGetPos(WORD wID, LPJOYINFO lpInfo)
44 {
45     fprintf(stdnimp, "EMPTY STUB !!! JoyGetPos(%04X, %p);\n", wID, lpInfo);
46     return MMSYSERR_NODRIVER;
47 }
48
49 /**************************************************************************
50  *                              JoyGetThreshold         [MMSYSTEM.104]
51  */
52 WORD JoyGetThreshold(WORD wID, LPWORD lpThreshold)
53 {
54     fprintf(stdnimp, "EMPTY STUB !!! JoyGetThreshold(%04X, %p);\n", wID, lpThreshold);
55     return MMSYSERR_NODRIVER;
56 }
57
58 /**************************************************************************
59  *                              JoyReleaseCapture       [MMSYSTEM.105]
60  */
61 WORD JoyReleaseCapture(WORD wID)
62 {
63     fprintf(stdnimp, "EMPTY STUB !!! JoyReleaseCapture(%04X);\n", wID);
64     return MMSYSERR_NODRIVER;
65 }
66
67 /**************************************************************************
68  *                              JoySetCapture           [MMSYSTEM.106]
69  */
70 WORD JoySetCapture(HWND hWnd, WORD wID, WORD wPeriod, BOOL bChanged)
71 {
72     fprintf(stdnimp, "EMPTY STUB !!! JoySetCapture(%04X, %04X, %d, %d);\n",
73             hWnd, wID, wPeriod, bChanged);
74     return MMSYSERR_NODRIVER;
75 }
76
77 /**************************************************************************
78  *                              JoySetThreshold         [MMSYSTEM.107]
79  */
80 WORD JoySetThreshold(WORD wID, WORD wThreshold)
81 {
82     fprintf(stdnimp, "EMPTY STUB !!! JoySetThreshold(%04X, %d);\n", wID, wThreshold);
83     return MMSYSERR_NODRIVER;
84 }
85
86 /**************************************************************************
87  *                              JoySetCalibration       [MMSYSTEM.109]
88  */
89 WORD JoySetCalibration(WORD wID)
90 {
91     fprintf(stdnimp, "EMPTY STUB !!! JoySetCalibration(%04X);\n", wID);
92     return MMSYSERR_NODRIVER;
93 }