XIM Community

XIMBridgeWrapper  (Read 7160 times)

Offline tuffrabit

  • Global Moderator
  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
XIMBridgeWrapper
« on: 11:43 AM - 10/05/11 »
Version 1.0 Beta

XIMBridgeWrapper is a C++/CLI wrapper that provides managed/.NET access to OBsIV's XIMBridge SDK.

XIMBridgeWrapper.zip contains the full source and a test project.
testyKins.zip is the test project that I've pre-compiled for people who don't want to open up an IDE.

Any and all feedback is welcome.

Current Status
Current version includes the latest SDK.  I'm waiting until I, or somebody else, successfully creates an application using this wrapper before I call it Version 1.0 Release.
« Last Edit: 10:09 AM - 10/13/11 by tuffrabit »


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline Humble

  • MVP
  • *
  • Posts: 566
    • View Profile
Re: XIMBridgeWrapper
« Reply #1 on: 01:53 PM - 12/22/11 »
I'm thinking about writing a similar wrapper in Java using JNI. Would anyone be interested in this? I foresee some packaging issues (one JAR, 2 DLLs) that may limit its usefulness.

Offline Wurstwasser

  • Member
  • *
  • Posts: 438
    • View Profile
Re: XIMBridgeWrapper
« Reply #2 on: 04:04 PM - 09/01/12 »
I experimented a bit with the wrapper and its pretty nice to use. Already compiled an app to pass joystick input to my XIM3.

But i can't prevent my app from crashing when the Easy Transfer cable is connected and my XIM3 is not powered on. Also happens with your testyKins test app.

Offline tuffrabit

  • Global Moderator
  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMBridgeWrapper
« Reply #3 on: 01:04 PM - 09/05/12 »
I'll have to try to reproduce that bug.  Probably an unmanaged exception bubbling up.

How are you grabbing input btw?  DirectX SDK?  PInvoke/Com hooks?


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline Wurstwasser

  • Member
  • *
  • Posts: 438
    • View Profile
Re: XIMBridgeWrapper
« Reply #4 on: 02:58 PM - 09/05/12 »
DirectX SDK with DirectInput.

The program definitely crashes when the XIMSTATUS connectionStatus = XIMconnect(); in device.cpp is called and my XIM3 is powered off but Easy Transfer Cable is connected.

Offline tuffrabit

  • Global Moderator
  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMBridgeWrapper
« Reply #5 on: 03:02 PM - 09/05/12 »
Oh... it crashes there?  I can try putting that in a try catch block, but it may not help.  This might be something OBsIV needs to fix in his SDK.


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline Wurstwasser

  • Member
  • *
  • Posts: 438
    • View Profile
Re: XIMBridgeWrapper
« Reply #6 on: 03:30 PM - 09/05/12 »
Yes could be the Obsivs SDK, also happens with XIMCommander.

Offline ak-xs

  • MVP
  • *
  • Posts: 6514
  • I'm what you call a player of non sens xD
    • View Profile
    • don't click here!
Re: XIMBridgeWrapper
« Reply #7 on: 07:32 AM - 09/07/12 »
i just want to say Thanks man ^^
soon..

Offline Balberoth

  • Member
  • *
  • Posts: 73
    • View Profile
Re: XIMBridgeWrapper
« Reply #8 on: 11:41 AM - 01/26/13 »
Hi guys, this may not be related to what's happening with your programs, but I'm having issues with the pass-through that I think are related to something within the SDK, the detail of it is in this thread:
http://www.xim3.com/community/index.php?topic=25876.45
If you could chip in to say that you're having problems with crashing in other circumstances due to the SDK that'd be really helpful, because I'm having big problems, but as seemingly few people use the pass-through I don't think it's going to be much of a priority.
Problem is, nobody will use it if the function doesn't work, and I personally wouldn't have bought the XIM Edge if I'd known about this issue beforehand.
Hopefully your input would have some weight, as I suspect the SDK is the problem, but as I'm not a programmer I have literally no idea what the mechanics of the problem could be, whereas you might.
Cheers
Ross

Offline OBsIV

  • Administrator
  • MVP
  • *
  • Posts: 33772
  • It's obsessive.
    • View Profile
    • OBsIV's Blog
Re: XIMBridgeWrapper
« Reply #9 on: 11:47 AM - 01/26/13 »
It must be related to particular setups as we use the Bridge extensively to train Smart Translators with no issues. If there is a particular thing in common with the crashes, that would help since we'd have the ability to reproduce the problem (which is required to fix it).
Get the most out of your XIM APEX, read the XIM APEX Support FAQ.