Page 24 of 72 FirstFirst ... 141516171819202122232425262728293031323334 ... LastLast
Results 231 to 240 of 712

Thread: CONTEST: Xbox Chatpad Driver Challenge

  1. #231
    Newbie
    Join Date
    Nov 2010
    Posts
    50
    @GAFBlizzard

    im using a controller mapping tool called JoyToKey for minecraft.

    JoyToKey IMG

    image xD

  2. #232
    Newbie
    Join Date
    Aug 2009
    Posts
    3
    Quote Originally Posted by GAFBlizzard View Post
    Yep, using the devcon source as an example is the plan.

    I'll look into adding those two API calls instead of whatever devcon does, though. Thanks again.
    Assuming your driver is linked via a Hardware ID and has an appropriate INF, use DIFxApp not devcon. Include the DIFxApp Merge Module into the Windows Installer package, place the INF etc into one directory in the MSI and create an table entry in MsiDriverPackages pointing to it. PnP will take care of the rest.

    This process sounds far more complicated that it actually is.

  3. #233
    Constant Bitrate
    Join Date
    Nov 2010
    Posts
    187
    Quote Originally Posted by sirbod View Post
    Assuming your driver is linked via a Hardware ID and has an appropriate INF, use DIFxApp not devcon. Include the DIFxApp Merge Module into the Windows Installer package, place the INF etc into one directory in the MSI and create an table entry in MsiDriverPackages pointing to it. PnP will take care of the rest.

    This process sounds far more complicated that it actually is.
    Thanks for the info. Are you suggesting I use a MSI Windows installer instead of the NIS installer as an earlier poster mentioned?

    What advantages does DIFxApp offer over the API used by devcon -- simplicity? Specifically, does DIFxApp work with Windows XP, Vista, 7, 32-bit and 64-bit varieties of all of the above, and kernel level filter drivers? I seem to recall seeing in passing that the DIFx API does not support filter drivers.

    Basically, do you see anything wrong with the devcon API + NIS approach if I fall back to that?

  4. #234
    Constant Bitrate
    Join Date
    Nov 2010
    Posts
    187
    Update for the night:

    * Finish HID descriptor stuff so the virtual mouse device appears in device manager properly, and the virtual mouse driver can accept commands from userspace. Done, unless I need to change the HID descriptor a little bit to make the virtual mouse behave differently.

    * Link the virtual mouse driver to my control utility, and make sure I can move the mouse, click buttons, and use the scroll wheel. Done, but I do need to spend maybe another day understanding how the virtual mouse works.

    * Make the virtual mouse usable via the controller/config file/control utility mechanism, and make sure everything works well. (1-3 days to do, hopefully) (This is also where I would test again in say, Mirror's Edge)

    The virtual mouse device I have now has some odd behavior when I tell it to move more than a certain number of pixels -- it seems to randomly move 8-10 pixels when I ask it to move 10, and if I tell it to move a large number (like 128) in one shot, it definitely moves some larger value, so I'm assuming there is some sort of mouse scaling/acceleration happening. The answer to all of this is probably simple, but I need to spend a little more time to understand it.

    I can also move the scroll wheel up or down one line, but not do a larger motion in one shot. This is probably fine, at least for now, but I don't fully understand why putting a larger value in the HID report doesn't result in more lines scrolled.

    Good night internet!

  5. #235
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    1,783
    Quote Originally Posted by GAFBlizzard View Post
    The virtual mouse device I have now has some odd behavior when I tell it to move more than a certain number of pixels -- it seems to randomly move 8-10 pixels when I ask it to move 10, and if I tell it to move a large number (like 128) in one shot, it definitely moves some larger value, so I'm assuming there is some sort of mouse scaling/acceleration happening. The answer to all of this is probably simple, but I need to spend a little more time to understand it.
    Yup that would be mouse acceleration.... the only way I know of to avoid it is to convert to an absolute pointing device. The problem there though is that mouse speed wouldn't be user adjustable.

    Some reading if you want: http://www.microsoft.com/whdc/archive/pointer-bal.mspx I should also tell you the algorithm was completely wrong in XP....but is fixed in Vista. Unfortunately no documentation on it that I could find.

  6. #236
    Constant Bitrate
    Join Date
    Nov 2010
    Posts
    187
    Quote Originally Posted by justchat_1 View Post
    Yup that would be mouse acceleration.... the only way I know of to avoid it is to convert to an absolute pointing device. The problem there though is that mouse speed wouldn't be user adjustable.

    Some reading if you want: http://www.microsoft.com/whdc/archive/pointer-bal.mspx I should also tell you the algorithm was completely wrong in XP....but is fixed in Vista. Unfortunately no documentation on it that I could find.
    You're the man, bookmarked! Hahaha, thanks for warning me that it's wrong in XP.

    As long as I can get something that "feels" good in XP and Vista, I'm not going to worry so much about exact pixel precision with movement, since I have the feeling that the 360 controller's thumbsticks aren't going to be good for pixel-accurate movement anyway. I'll probably just leave it as the default relative motion so long as it works. Thanks again!

  7. #237
    Newbie
    Join Date
    Dec 2010
    Posts
    16
    GAFBlizzard, How does the gamepad go from being a mouse to a regular joystick? A utility?

  8. #238
    Newbie
    Join Date
    Nov 2010
    Posts
    17
    Quote Originally Posted by revel911 View Post
    GAFBlizzard, How does the gamepad go from being a mouse to a regular joystick? A utility?
    I think he mentioned a utility, if not it will be a config file (?).

  9. #239
    Constant Bitrate
    Join Date
    Nov 2010
    Posts
    187
    Quote Originally Posted by revel911 View Post
    GAFBlizzard, How does the gamepad go from being a mouse to a regular joystick? A utility?
    I have a small control utility that can just be run and left minimized. I might eventually make an option to run it as a service or minimize to the system tray if possible, but for now it's just a utility. You restart the utility if you make changes to the config file and need them to take effect. Without the utility running, the drivers and virtual devices won't produce key and mouse events.

    If you want mouse control, you can have a chatpad key combination set up to toggle "Windows mode", where the controller thumbsticks and buttons can do stuff in Windows. For example, you could bind green+orange+J to toggle this, if you wanted, or simply use the "people" button if you're not using it for something else.

  10. #240
    Newbie
    Join Date
    Nov 2010
    Posts
    50
    Quote Originally Posted by GAFBlizzard View Post
    I have a small control utility that can just be run and left minimized. I might eventually make an option to run it as a service or minimize to the system tray if possible, but for now it's just a utility. You restart the utility if you make changes to the config file and need them to take effect. Without the utility running, the drivers and virtual devices won't produce key and mouse events.
    Is the program have to run in order to use the chatpad?

Similar Threads

  1. HQCT Driver.
    By TheLlama in forum Linux
    Replies: 63
    Last Post: 10-06-2009, 09:32 AM
  2. System Choices and Questions
    By BoondockSaints in forum Car Audio
    Replies: 85
    Last Post: 08-09-2007, 10:52 AM
  3. Driver Issues (PL-2303 Driver)
    By PharmD Heel in forum GPS
    Replies: 1
    Last Post: 08-29-2006, 04:31 PM
  4. Questions!
    By Yellow-Snow in forum Mobile Impact
    Replies: 4
    Last Post: 06-10-2006, 05:18 PM

Tags for this Thread

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
  •