Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,395 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
USB support for Gamestudio #231975
10/18/08 14:50
10/18/08 14:50
Joined: Jun 2006
Posts: 6
V
virror Offline OP
Newbie
virror  Offline OP
Newbie
V

Joined: Jun 2006
Posts: 6
Hello, i wonder if its possible to use the D2XX USB driver from www.ftdichip.com in 3D Gamestudio to get USB support? Its only a dll file and a .h file that contains functions for USB connectivity. Is it possible to use any dll file in 3D Gamestudio?

Re: USB support for Gamestudio [Re: virror] #231981
10/18/08 15:32
10/18/08 15:32
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
depends, you might need to write a wrapper for it, but ultimately no matter what you can get it to work, you just might need to know w little c++ to do it.

Re: USB support for Gamestudio [Re: lostclimate] #231985
10/18/08 16:02
10/18/08 16:02
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Quote:
you might need to write a wrapper for it
What is a wrapper? And how do you write one in c++?

Re: USB support for Gamestudio [Re: NITRO777] #231987
10/18/08 16:26
10/18/08 16:26
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well, if a program needs a specific setup in a dll, then you can write a seperate dll to be a "middle man" which speaks with both the engine and the desired library. Its the type of thing that people have been doing with enet and fmod.

Re: USB support for Gamestudio [Re: lostclimate] #231989
10/18/08 16:44
10/18/08 16:44
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
OK, that question is answered...still doesnt tell me exactly how they are written, but I guess I will find that out as I study c++. Now for another question : why would anyone need USB connectivity for gstudio? I thought usb was a protocol for peripheral devices on a computer,...I am having a hard time seeing the link between gstudio...I mean, my mouse is usb and is working fine in the engine. wink

Re: USB support for Gamestudio [Re: NITRO777] #231994
10/18/08 17:24
10/18/08 17:24
Joined: Jun 2006
Posts: 6
V
virror Offline OP
Newbie
virror  Offline OP
Newbie
V

Joined: Jun 2006
Posts: 6
First, this dll works fine with for example Borland C++ Builder without any wrapper, does that make it more likely to work with 3dGS?

Second, im a hardware engeineer, and i would like to build some cool input unit to 3dGS, like a VR glove or something.

Last edited by virror; 10/18/08 18:13.
Re: USB support for Gamestudio [Re: virror] #232000
10/18/08 18:28
10/18/08 18:28
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Originally Posted By: virror
First, this dll works fine with for example Borland C++ Builder without any wrapper, does that make it more likely to work with 3dGS?

Second, im a hardware engeineer, and i would like to build some cool input unit to 3dGS, like a VR glove or something.


this sounds interesting. Running this dll inside 3dgs should be possible. If it is c dll it most likely to run directly, but if it is not you'll need a wrapper. Doesn't sound hard....


3333333333
Re: USB support for Gamestudio [Re: Quad] #232007
10/18/08 18:57
10/18/08 18:57
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Quote:
If it is c dll it most likely to run directly, but if it is not you'll need a wrapper. Doesn't sound hard....
Why is that? Is it because gstudio is programmed in c therefore it is the native language?

Re: USB support for Gamestudio [Re: NITRO777] #232017
10/18/08 20:11
10/18/08 20:11
Joined: Jun 2006
Posts: 6
V
virror Offline OP
Newbie
virror  Offline OP
Newbie
V

Joined: Jun 2006
Posts: 6
Sounds promesing, i will post the .h file and the dll below if anyone want to look at it and tell me if its possible. I have some strange include problem right no so i cant test it myself.

ftd2xx.h
ftd2xx.dll

Last edited by virror; 10/18/08 20:13.
Re: USB support for Gamestudio [Re: virror] #232033
10/18/08 23:03
10/18/08 23:03
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
this will need a wrapper i guess, looks like someone with experience in plugins can easily write a wrapper.


3333333333
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1