Mercurial > sdl-ios-xcode
annotate docs/html/guidecredits.html @ 1584:b786d9c15e42
Fixed bug #61
Date: Mon, 24 Feb 2003 13:35:11 +0800
From: "Leonidas"
Subject: [SDL] Re: Trigger mouse wheel event -- not in X-environment
I have looked into the codes for the IMPS/2 mouse wheel mode of fbcon driver.
But I found something weird.
Here's the original codes to set a mouse device into IMPS/2 mode in libSDL.
In the file src/video/fbcon/SDL_fbevents.c
In function static int set_imps2_mode(int fd)
...
Uint8 set_imps2[] = {0xf3, 200, 0xf3, 100, 0xf3, 80};
Uint8 reset = 0xff;
fd_set fdset;
struct timeval tv;
int retval = 0;
// Set mouse device fd into IMPS/2 mode
if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
// ??? then RESET it..???
if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
retval = 1;
}
}
...........
Since it sets IMPS/2 mode then reset it, so you will never get a mouse into
IMPS/2 mode to use its wheel.
What I did to make the wheel usable is remove the RESET codes.
....
if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
/*
if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
}
*/
retval = 1;
}
....
And in FB_OpenMouse(_THIS)
Make the device /dev/psaux to be setted into imps2 mode such that it can be
detected its a imps/2 mouse or not.
(my mouse device is on ps2, but the codes only set /dev/input/mice device
originally)
Then I have done, I can use the mouse wheel when SDL uses frame buff driver.
I dont exactly know I did right or wrong, I just change it for my usuage.
Correct me please, if I did something wrong.
Best regards,
Li Tsung Lin
IAP Product Dept. Engineer
EeRise Corp. (Image Processing System, Computer Vision System)
Hsin Tien, Taipei Hsien, Taiwan, R.O.C.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 22 Mar 2006 07:22:40 +0000 |
parents | 355632dca928 |
children |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >Credits</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="Preface" | |
14 HREF="guidepreface.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="About SDLdoc" | |
17 HREF="guideaboutsdldoc.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="The Basics" | |
20 HREF="guidethebasics.html"></HEAD | |
21 ><BODY | |
22 CLASS="SECT1" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
31 SUMMARY="Header navigation table" |
0 | 32 WIDTH="100%" |
33 BORDER="0" | |
34 CELLPADDING="0" | |
35 CELLSPACING="0" | |
36 ><TR | |
37 ><TH | |
38 COLSPAN="3" | |
39 ALIGN="center" | |
40 >SDL Library Documentation</TH | |
41 ></TR | |
42 ><TR | |
43 ><TD | |
44 WIDTH="10%" | |
45 ALIGN="left" | |
46 VALIGN="bottom" | |
47 ><A | |
48 HREF="guideaboutsdldoc.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
49 ACCESSKEY="P" |
0 | 50 >Prev</A |
51 ></TD | |
52 ><TD | |
53 WIDTH="80%" | |
54 ALIGN="center" | |
55 VALIGN="bottom" | |
56 >Preface</TD | |
57 ><TD | |
58 WIDTH="10%" | |
59 ALIGN="right" | |
60 VALIGN="bottom" | |
61 ><A | |
62 HREF="guidethebasics.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
63 ACCESSKEY="N" |
0 | 64 >Next</A |
65 ></TD | |
66 ></TR | |
67 ></TABLE | |
68 ><HR | |
69 ALIGN="LEFT" | |
70 WIDTH="100%"></DIV | |
71 ><DIV | |
72 CLASS="SECT1" | |
73 ><H1 | |
74 CLASS="SECT1" | |
75 ><A | |
76 NAME="GUIDECREDITS" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
77 ></A |
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
78 >Credits</H1 |
0 | 79 ><P |
80 ><P | |
81 ></P | |
82 ><TABLE | |
83 BORDER="0" | |
84 ><TBODY | |
85 ><TR | |
86 ><TD | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
87 >Sam Lantinga, slouken@libsdl.org</TD |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
88 ></TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
89 ><TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
90 ><TD |
0 | 91 >Martin Donlon, akawaka@skynet.ie</TD |
92 ></TR | |
93 ><TR | |
94 ><TD | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
95 >Mattias Engdegård</TD |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
96 ></TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
97 ><TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
98 ><TD |
0 | 99 >Julian Peterson</TD |
100 ></TR | |
101 ><TR | |
102 ><TD | |
103 >Ken Jordan</TD | |
104 ></TR | |
105 ><TR | |
106 ><TD | |
107 >Maxim Sobolev</TD | |
108 ></TR | |
109 ><TR | |
110 ><TD | |
111 >Wesley Poole</TD | |
112 ></TR | |
113 ><TR | |
114 ><TD | |
115 >Michael Vance</TD | |
116 ></TR | |
117 ><TR | |
118 ><TD | |
119 >Andreas Umbach</TD | |
120 ></TR | |
121 ><TR | |
122 ><TD | |
123 >Andreas Hofmeister</TD | |
124 ></TR | |
125 ></TBODY | |
126 ></TABLE | |
127 ><P | |
128 ></P | |
129 ></P | |
130 ></DIV | |
131 ><DIV | |
132 CLASS="NAVFOOTER" | |
133 ><HR | |
134 ALIGN="LEFT" | |
135 WIDTH="100%"><TABLE | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
136 SUMMARY="Footer navigation table" |
0 | 137 WIDTH="100%" |
138 BORDER="0" | |
139 CELLPADDING="0" | |
140 CELLSPACING="0" | |
141 ><TR | |
142 ><TD | |
143 WIDTH="33%" | |
144 ALIGN="left" | |
145 VALIGN="top" | |
146 ><A | |
147 HREF="guideaboutsdldoc.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
148 ACCESSKEY="P" |
0 | 149 >Prev</A |
150 ></TD | |
151 ><TD | |
152 WIDTH="34%" | |
153 ALIGN="center" | |
154 VALIGN="top" | |
155 ><A | |
156 HREF="index.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
157 ACCESSKEY="H" |
0 | 158 >Home</A |
159 ></TD | |
160 ><TD | |
161 WIDTH="33%" | |
162 ALIGN="right" | |
163 VALIGN="top" | |
164 ><A | |
165 HREF="guidethebasics.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
166 ACCESSKEY="N" |
0 | 167 >Next</A |
168 ></TD | |
169 ></TR | |
170 ><TR | |
171 ><TD | |
172 WIDTH="33%" | |
173 ALIGN="left" | |
174 VALIGN="top" | |
175 >About SDLdoc</TD | |
176 ><TD | |
177 WIDTH="34%" | |
178 ALIGN="center" | |
179 VALIGN="top" | |
180 ><A | |
181 HREF="guidepreface.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
182 ACCESSKEY="U" |
0 | 183 >Up</A |
184 ></TD | |
185 ><TD | |
186 WIDTH="33%" | |
187 ALIGN="right" | |
188 VALIGN="top" | |
189 >The Basics</TD | |
190 ></TR | |
191 ></TABLE | |
192 ></DIV | |
193 ></BODY | |
194 ></HTML | |
195 > |