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