217 |
class InputDevice "interface" |
class InputDevice "interface" |
218 |
jlink |
jlink |
219 |
assoc multi(1) - multi(*) Axis |
assoc multi(1) - multi(*) Axis |
220 |
|
|
221 |
|
|
222 |
class Axis "interface" |
class Axis "interface" |
223 |
jlink |
jlink |
224 |
methods |
methods |
225 |
getName() |
getName() |
226 |
|
void setState(int state) |
227 |
|
float getChoiceProbability() |
228 |
|
|
229 |
--- |
--- |
230 |
horizontally(60, xx, InputDeviceManager, InputDevice, Axis); |
horizontally(60, xx, InputDeviceManager, InputDevice, Axis); |
233 |
Implementation |
Implementation |
234 |
============== |
============== |
235 |
|
|
236 |
|
Axes |
237 |
|
---- |
238 |
|
|
239 |
|
|
240 |
|
Inside, we have classes to adapt the delta input from the mouse |
241 |
|
to the axis interface. |
242 |
|
|
243 |
|
.. UML:: custominputs_ps2mouse |
244 |
|
|
245 |
|
jlinkpackage org.nongnu.libvob.input.impl |
246 |
|
|
247 |
|
class (PSMD) PS2MouseDevice |
248 |
|
jlink |
249 |
|
realize InputDevice |
250 |
|
fields |
251 |
|
RandomAccessFile dev |
252 |
|
assoc multi(0..1) - multi(3) role(xyz) RelativeAxis |
253 |
|
|
254 |
|
class RelativeAxis |
255 |
|
jlink |
256 |
|
realize RelativeAxisListener |
257 |
|
realize Axis |
258 |
|
methods |
259 |
|
int changedRelative(int delta) |
260 |
|
|
261 |
|
jlinkpackage org.nongnu.libvob.input |
262 |
|
|
263 |
|
class InputDevice "interface" |
264 |
|
jlink |
265 |
|
|
266 |
|
class Axis "interface" |
267 |
|
jlink |
268 |
|
|
269 |
|
--- |
270 |
|
horizontally(40, xx, InputDevice, Axis); |
271 |
|
horizontally(70, yy, PSMD, RelativeInputAxis); |
272 |
|
vertically(50, zz, xx, yy); |
273 |
|
|
274 |
|
|
275 |
|
|