Toolsystem introduction

From JReality Wiki
Jump to: navigation, search

Intro (Computers)

The toolsystem is managed by XML-files. The 'main'-file is listed at de.jreality.toolsystem.config.toolconfig-split.xml . It manages the device Systemtimer and other imported controllers.


 
<toolconfig>
 
  <!-- Import required controllers here /-->
  <import href="chunks/toolconfig-mouse-keyboard.xml" />
  <import href="chunks/toolconfig-desktop.xml" />
  <!-- import href="chunks/toolconfig-Spacenav.xml" /-->
  <!-- import href="chunks/toolconfig-Saitek-P880.xml" /-->
  <!-- import href="chunks/toolconfig-no-mouse.xml" /-->
  <!-- import href="chunks/toolconfig-optimusmini.xml" /-->
  
 
  <rawdevices>
    <rawdevice id="SystemTimer" type="de.jreality.toolsystem.raw.DeviceSystemTimer"/>     	
  </rawdevices>
 
  <rawslots>
    <mapping device="SystemTimer" src="tick" target="SystemTime"/>
  </rawslots>
  
  
  <virtualdevices>
 
    <virtualdevice type="de.jreality.toolsystem.virtual.VirtualEvolutionOperator">
      <inputslot>PointerTransformation</inputslot>
      <outputslot>PointerEvolution</outputslot>
    </virtualdevice>
 
  </virtualdevices>
</toolconfig>


The standard configuration includes keyboard and mouse usage, but you can also include a Gamepad, Joystick, Spacenavigator etc. Each such device has his own xml-file, saved at de.jreality.toolsystem.config.chunks.<devicename>.xml .

How to use such devices is shown at the following tutorials.

Intro (C.A.V.E.)

see here: JReality_Virtual_Environment_Tutorial