Page 27 of 42 FirstFirst ... 171819202122232425262728293031323334353637 ... LastLast
Results 261 to 270 of 415

Thread: Space Navigator PE Driver Development Thread

  1. #261
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    Ok, i guess this will be the start of my SpaceNav driver guide.. Attached are two config.xml files. One is the one I am currently using, which was really just a test to get the app to do different things based on where i was in the roadrunner skin. The second is one that will just act as a medai controller all the time.

    Now, In the config i use that supports context switching you will see this code, in which it defines the two contexts i use, media controlling and mouse simulting:
    Code:
      <deviceContexts>
        <deviceContext name="Media" device="SpaceNavigator">
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right -->
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back -->
          <axe threshold="500" type="binary" posAction="RR Play/Pause" negAction=""/> <!-- axe 2 push/pull -->
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 3 tilt foreward/back -->      
          <axe threshold="200" type="binary" posAction="RR Prev" negAction="RR Next"/> <!-- axe 4 tilt left/right -->
    	  <axe threshold="100" 
            type="exponential"
            startPulse="1"
            endPulse="20"
            posAction="RR Volume Up"
            negAction="RR Volume Down" /> <!-- axe 5 Twist -->
    	  <buttons>
            <button downAction="RR Mute"
              upAction="" />
            <button downAction="RR FullVisu"
              upAction="" />
          </buttons>
    	</deviceContext>
    	<deviceContext name="Mouse" device="SpaceNavigator">
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right -->
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back -->
          <axe threshold="500" type="binary" posAction="" negAction=""/> <!-- axe 2 push/pull -->
    	  <axe simulateMouseMove="y"
            threshold="50"
            divisor="30" />
    	  <axe simulateMouseMove="x"
            threshold="50"
            divisor="30" />
    	  <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 5 twist -->
    	  <buttons>
    		<button simulateMouseButton="left" />
    		<button simulateMouseButton="right" />
    	  </buttons>
    	</deviceContext>
      </deviceContexts>
    The DeviceContextName is the name of the context, and the device is the interface. You can choose differnt interfaces, but in both configs i only have the space navigator setup, so they will always be the same.
    Attached Files Attached Files
    cashtexts - Earn money for receiving text messaged offers
    cashtexts review not a scam
    Space Navigator - 6 Axis input device: Take it apart - Driver App
    RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable

  2. #262
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    Notice this code, for the media context:
    Code:
    <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right -->
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back -->
          <axe threshold="500" type="binary" posAction="RR Play/Pause" negAction=""/> <!-- axe 2 push/pull -->
          <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 3 tilt foreward/back -->      
          <axe threshold="200" type="binary" posAction="RR Prev" negAction="RR Next"/> <!-- axe 4 tilt left/right -->
    	  <axe threshold="100" 
            type="exponential"
            startPulse="1"
            endPulse="20"
            posAction="RR Volume Up"
            negAction="RR Volume Down" /> <!-- axe 5 Twist -->
    This defines the actions to be used for each axis of the SN (space navigator.) If you want to just use the fifth axis, which is twisting, then you NEED to have 4 other definitions before it, because that is how the program determines which one is which, since they aren't defined. they just go in order.

    posAction and negAction determine what to do when the device is moved that way on each axis. I dont recall which way is which for each control, but generally up is pos, and right is pos.. Just play with the control and you'll figure it out..

    Now about the actions. They must be defined in order for the program to know what to do, hence the 'action' section
    Code:
      <actions>
        <sendWindowMessage name="Context Up"
          type="CopyData"
          window="SpaceNavigatorDriver"
          message="CONTEXT;Up"/>
        <sendWindowMessage name="Context Down"
          type="CopyData"
          window="SpaceNavigatorDriver"
          message="CONTEXT;Down"/>
        <sendWindowMessage name="RR Volume Up"
          type="CopyData"
          window="RoadRunner"
          message="VOL+"/>
        <sendWindowMessage name="RR Volume Down"
          type="CopyData"
          window="RoadRunner"
          message="VOL-"/>
    	  <sendWindowMessage name="RR Mute"
          type="CopyData"
          window="RoadRunner"
          message="MUTE"/>
    	  <sendWindowMessage name="RR Play/Pause"
          type="CopyData"
          window="RoadRunner"
          message="PLAY"/>
    	  <sendWindowMessage name="RR Next"
          type="CopyData"
          window="RoadRunner"
          message="NEXT"/>
    	  <sendWindowMessage name="RR Prev"
          type="CopyData"
          window="RoadRunner"
          message="PREV"/>
    Basically, most of them just send a message to RR (roadrunner) the same way you would set a button code.

    Context Swtiching:

    TO enable the driver to send differnt commands dependig on what skin file is loaded (like the menu, or the audio player, etc) RR needs to send a message to the app. This is done with a few lines of code.

    In each skin file you want to support, like menu.skin, games.skin, audioplayer.skin, etc, you need to add this line somewhere in there:
    Code:
    TMR,1
    Then in exectbl.ini you need to add the following code:
    Code:
    "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Media",Audio_Player.skin
    "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Media",Menu.skin
    "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Media",Menu2.skin
    "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Mouse",Games.skin
    Basically, this says that if Audio_Player.skin is loaded, send a message to the spacenavigatordriver app, which says "CONTEXT;Media" and then the app will look for a context named "Media" and start using it.

    When the games skin is loaded, it tells the app to use the mouse context, in which it simulates a mouse =]

    I think this covers everything...

    myconfig.xml.txt is the one i use, mediaconfig.xml.txt is the one setup to just do media controls. It needs to be renamed config.xml and placed in the same folder as the space nav driver.exe program. Just overwrite the default one.
    cashtexts - Earn money for receiving text messaged offers
    cashtexts review not a scam
    Space Navigator - 6 Axis input device: Take it apart - Driver App
    RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable

  3. #263
    Low Bitrate
    Join Date
    Jun 2007
    Location
    Oxnard, CA
    Posts
    86
    Wow thanks a lot Inh.

    I have a much better understanding of how this thing works.

  4. #264
    Low Bitrate taylorgauss's Avatar
    Join Date
    Feb 2007
    Location
    Seattle
    Posts
    93
    Yeah, thanks a ton. I really appreciate it.

  5. #265
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    No problem guys. I've been meaning to write a guide since i think im the only person besides the author that understands it

    Let me know if you guys get it working =]
    cashtexts - Earn money for receiving text messaged offers
    cashtexts review not a scam
    Space Navigator - 6 Axis input device: Take it apart - Driver App
    RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable

  6. #266
    Low Bitrate
    Join Date
    Jun 2007
    Location
    Oxnard, CA
    Posts
    86
    Yeah I got your config working right after you posted it (Using it for Volume control and as a mouse under the games section). Only problem I had was clicking. Left/Right buttons on SN did not execute MouseClicks. When I get home tonight I'll try and figure it out then adjust it for my own needs and if it works, post the config for anyone that might be interested. (In my car I'm hoping to use it as the primary input device and have it be a mouse 24/7 but also keep volume control for RR. (Not sure if its possible yet but well see...).

  7. #267
    Variable Bitrate cherrybomb's Avatar
    Join Date
    Apr 2005
    Location
    Southern Califorina
    Posts
    233
    Quote Originally Posted by inh View Post
    No problem guys. I've been meaning to write a guide since i think im the only person besides the author that understands it

    Let me know if you guys get it working =]
    Frankly, I think you understand it better than I do, at least from a practical standpoint.

    I'm too lazy/dense to memorize it all, and do intend to (eventually) write a config app. ;-)

    Might actually have a spare moment or two to work on the few things you've mentioned this week. Yay me! :-)
    '99 Ford Explorer Eddie Bauer
    CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
    CarPC Project Web Site

    SpaceNavigatorDriver SourceForge Project

    Check out my blog.

  8. #268
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    You should definatly be able to control volume with a twist and the mouse at the same time, just add the axis commands in there. You'll have to set some of them to not to anything (like where i have them set as digital with no action defined) so that you can set axis 5 for volume.

    About the buttons not working, no idea.. Might be something with your system..

    Cherrybomb, im keepin my fingers crossed =] I finally figured out where I'm going to mount this thing, so I'm even more motivated
    cashtexts - Earn money for receiving text messaged offers
    cashtexts review not a scam
    Space Navigator - 6 Axis input device: Take it apart - Driver App
    RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable

  9. #269
    Variable Bitrate cherrybomb's Avatar
    Join Date
    Apr 2005
    Location
    Southern Califorina
    Posts
    233
    Quote Originally Posted by inh View Post
    Cherrybomb, im keepin my fingers crossed =] I finally figured out where I'm going to mount this thing, so I'm even more motivated
    Yeah, I suspect once I actually try to use the thing in my vehicle I'll be more motivated as well.

    Gotta get a USB hub installed in my center console, then I can start playing with it.

    I'm just so happy to have a working setup finally, I'm a bit afraid to mess with it.. lol
    '99 Ford Explorer Eddie Bauer
    CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
    CarPC Project Web Site

    SpaceNavigatorDriver SourceForge Project

    Check out my blog.

  10. #270
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    hehe i know what ya mean! It's going to be a bit before I have a chance to install it, but just finding a place the bland it in where it would be in reach and look good was a challenge (take a look at some CRX interior pics and you'll see what I mean)

    When i get a chance, I think I'm going to crack mine open again and see about changing LED colors, just for kicks. Hell.. maybe puts some RGB LEDs in there.. Now THAT would be awesome..
    cashtexts - Earn money for receiving text messaged offers
    cashtexts review not a scam
    Space Navigator - 6 Axis input device: Take it apart - Driver App
    RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable

Similar Threads

  1. Questions!
    By Yellow-Snow in forum Mobile Impact
    Replies: 4
    Last Post: 06-10-2006, 06:18 PM
  2. iGuidance Font Size Fix summary thread
    By Viscouse in forum GPS
    Replies: 29
    Last Post: 03-28-2006, 07:21 PM
  3. Hot Chicks Thread - NOT WORK SAFE
    By ODYSSEY in forum Off Topic
    Replies: 1
    Last Post: 05-17-2005, 10:38 PM
  4. Replies: 3
    Last Post: 01-07-2004, 12:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •