Release 960712
[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 "callback.h"
16 #include "user.h"
17 #include "driver.h"
18 #include "mmsystem.h"
19 #include "stddebug.h"
20 #include "debug.h"
21
22 /**************************************************************************
23  *                              JoyGetNumDevs           [MMSYSTEM.101]
24  */
25 WORD JoyGetNumDevs(void)
26 {
27     fprintf(stdnimp, "EMPTY STUB !!! JoyGetNumDevs();\n");
28     return 0;
29 }
30
31 /**************************************************************************
32  *                              JoyGetDevCaps           [MMSYSTEM.102]
33  */
34 WORD JoyGetDevCaps(WORD wID, LPJOYCAPS lpCaps, WORD wSize)
35 {
36     fprintf(stdnimp, "EMPTY STUB !!! JoyGetDevCaps(%04X, %p, %d);\n",
37             wID, lpCaps, wSize);
38     return MMSYSERR_NODRIVER;
39 }
40
41 /**************************************************************************
42  *                              JoyGetPos               [MMSYSTEM.103]
43  */
44 WORD JoyGetPos(WORD wID, LPJOYINFO lpInfo)
45 {
46     fprintf(stdnimp, "EMPTY STUB !!! JoyGetPos(%04X, %p);\n", wID, lpInfo);
47     return MMSYSERR_NODRIVER;
48 }
49
50 /**************************************************************************
51  *                              JoyGetThreshold         [MMSYSTEM.104]
52  */
53 WORD JoyGetThreshold(WORD wID, LPWORD lpThreshold)
54 {
55     fprintf(stdnimp, "EMPTY STUB !!! JoyGetThreshold(%04X, %p);\n", wID, lpThreshold);
56     return MMSYSERR_NODRIVER;
57 }
58
59 /**************************************************************************
60  *                              JoyReleaseCapture       [MMSYSTEM.105]
61  */
62 WORD JoyReleaseCapture(WORD wID)
63 {
64     fprintf(stdnimp, "EMPTY STUB !!! JoyReleaseCapture(%04X);\n", wID);
65     return MMSYSERR_NODRIVER;
66 }
67
68 /**************************************************************************
69  *                              JoySetCapture           [MMSYSTEM.106]
70  */
71 WORD JoySetCapture(HWND hWnd, WORD wID, WORD wPeriod, BOOL bChanged)
72 {
73     fprintf(stdnimp, "EMPTY STUB !!! JoySetCapture(%04X, %04X, %d, %d);\n",
74             hWnd, wID, wPeriod, bChanged);
75     return MMSYSERR_NODRIVER;
76 }
77
78 /**************************************************************************
79  *                              JoySetThreshold         [MMSYSTEM.107]
80  */
81 WORD JoySetThreshold(WORD wID, WORD wThreshold)
82 {
83     fprintf(stdnimp, "EMPTY STUB !!! JoySetThreshold(%04X, %d);\n", wID, wThreshold);
84     return MMSYSERR_NODRIVER;
85 }
86
87 /**************************************************************************
88  *                              JoySetCalibration       [MMSYSTEM.109]
89  */
90 WORD JoySetCalibration(WORD wID)
91 {
92     fprintf(stdnimp, "EMPTY STUB !!! JoySetCalibration(%04X);\n", wID);
93     return MMSYSERR_NODRIVER;
94 }