/[libvob]/libvob/doc/design_custominput.rst
ViewVC logotype

Diff of /libvob/doc/design_custominput.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tjl, Sun Jun 29 14:34:45 2003 UTC revision 1.7 by tjl, Mon Jun 30 07:08:30 2003 UTC
# Line 217  The ``InputDevice`` classes again allow Line 217  The ``InputDevice`` classes again allow
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);
# Line 230  The ``InputDevice`` classes again allow Line 233  The ``InputDevice`` classes again allow
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    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26