gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS homebrew announcements > DS2Key SVN - Now with Windows GUI, and Linux console support

#165944 - sypherce - Tue Jan 13, 2009 10:25 pm

UPDATE: Binaries now available! Download Here

Recently cualquiercosa327 contacted me with an interest in adding adapters, such as the Guitar Hero Grip, to my DS2Key application. I spoke to him saying I had lost all the server source code, which would make it impossible without recoding everything again to add these features. Long story short with some help from cualquiercosa327 I have almost completed the server and client working with all old features of DS2Key, and I've added the Guitar Hero Grip feature. I'm not going to release binaries until I feel that it is polished enough for the normal user. Although I am asking if you are able to compile it from the SVN to please give input on what features you would like to see. If anyone would like to help with this project simply get the source from the SVN and either post your changes or send them to me directly. Any help including bug reports would be greatly appreciated.

Current Status
The server (PC side) is either a GUI or console window (only console in Linux for now). It runs off of configuration files it generates when it first needs to use them. You are able to edit them by hand if you're using the console version. At this point it's undocumented, but it shouldn't be too hard to figure out the codes if you're able to compile it, just read through the source code a bit.

The client (DS side) has a simple GUI at this point. tapping the top left where you see a badly drawn rotating gear you can edit the settings, which are also saved. To edit the settings just tap "[Edit]" next to the setting and it'll bring up a keyboard, pressing enter when you're done editing will take you back. You'll have to change the IP for sure the first time, the default is 0.0.0.0 which is invalid for everyone. Then press "[Done]" to go back to using DS2Key. at the bottom right corner is a cursor image, tapping that will lock the screen back lights on, and you'll be able to use the mouse or mouse buttons, tapping it again will deactivate this mode.

Complete:

  • Action Buttons (Normal button input, a, b, left, right, etc)
  • Exact Mouse movement (Touching the middle of the touch screen sets the cursor on the middle of the PC screen, etc)
  • Mouse Touch Screen buttons (The screen is divided into having 12 buttons working similar to the normal buttons)
  • (New)Guitar Hero Grip buttons (All four buttons act the same as the normal buttons, but have their own settings)
  • (New)Mouse Clicks (Left, right, and middle buttons)
  • (New)Linux Support (All functions work as they do in Windows now)
  • (New)Windows GUI Support (Very friendly GUI :3 )

Planned:

  • Relative Mouse movement (Similar to a laptop's mouse pad)
  • Profile Toggle Function (Press or hold a key to switch to another profile)

Known Bugs:

  • (Squashed)Mouse input doesn't cover entire screen -- deadzone borders need to be made for the touch screen.
  • (Squashed)GUI log is disabled -- log caused lags, disabling command logs should fix this
  • (Squashed)Setting mouse button clicks in the GUI doesn't work -- mouse clicks actually work, just setting them up in the GUI doesn't
  • (is anyone geting this problem?)After changing the IP on the DS, the server ends up sending /p? repeatedly -- restarting the DS makes everything work fine
  • Setting GUI log to "All Messages" causes lag. This log mode is mostly for testing your connection, just switch the setting to something else and it will run lag free
  • Arrow key settings actually send numpad arrow keys, or numbers, depending on numlocks status

_________________
Pixels have feelings too.

sypherce

#165948 - cualquiercosa327 - Tue Jan 13, 2009 11:26 pm

Hi,great job. :p

#165984 - blahblahblaster - Thu Jan 15, 2009 6:45 am

so how do i get this working on linux? i ran the exe's with wine and got the arrows to work =/ but not on anything NOT emulated through wine... i dl'ed the svn, but i see no make... i'm not very savvy at compiling, so any help would be appreciated. i'm using ubuntu 8.10 btw.

issues:
while running the console, i got "/p0" every time i moved the stylus first time around. weird?
port 9501 could not be bound after that mishap, but the arrows worked still.
my new port is 9001, over....
_________________
^___^ {GFY!]

#165985 - sypherce - Thu Jan 15, 2009 7:12 am

blahblahblaster wrote:
so how do i get this working on linux? i ran the exe's with wine and got the arrows to work =/ but not on anything NOT emulated through wine... i dl'ed the svn, but i see no make... i'm not very savvy at compiling, so any help would be appreciated. i'm using ubuntu 8.10 btw.

issues:
while running the console, i got "/p0" every time i moved the stylus first time around. weird?
port 9501 could not be bound after that mishap, but the arrows worked still.
my new port is 9001, over....


To compile the linux version you'll need libXtst installed. To do so in Ubuntu: open a console and as a as root user type apt-get install libxtst-dev. After that cd into svn/DS2Key.Server/DS2Key/ and type gcc -lXtst -O2 -s config.c key.c main.c -o ds2key. After that you should be able to type ./ds2key and enjoy native Linux DS2Key goodness. About the errors, I'm really not sure, tell me if you still have them with the Linux version, and I'll help you then if it's still needed.
_________________
Pixels have feelings too.

sypherce

#166070 - NorQue - Sun Jan 25, 2009 8:30 pm

Huh? I'm pretty sure I've posted in this thread... what happened? Why don't we at least get a PM with a reason when our posts get deleted?

#166071 - bean_xp - Sun Jan 25, 2009 10:14 pm

NorQue wrote:
Huh? I'm pretty sure I've posted in this thread... what happened? Why don't we at least get a PM with a reason when our posts get deleted?


Read the post in the news section, the server's hard drive failed and the database has been rolled back to a backup made 5 days ago.

#166087 - NorQue - Mon Jan 26, 2009 10:50 am

Ah, sorry, my bad.

Damn, that should be frontpage material, I usually only visit the NDS section of the Forums.