Logitech G15 Integration

Discussion related to HLDJ, Steam, or gaming in general

Logitech G15 Integration

Postby natrapsmai » Wed Mar 03, 2010 11:19 pm

I'm trying to see if there's a way to get HLDJ to display the current loaded sound file into the LCD for one of Logitech's fancy keyboards. They're common enough, so I'm sure I'm not the only person out there who uses it in tandem with HLDJ. Searching around the 'net and... nothing. A few people asking about G15s and HLSS, but nothing for HLDJ. So I consider cracking open my C++ bible and going at it myself.

Before I get too far, I don't see a way for it to hook onto HLDJ... Renegade, have you opened HLDJ up for something like this?

Note: my apologies if this has been answered or addressed elsewhere.
Game DJ
Posts: 1
Joined: Wed Mar 03, 2010 11:01 pm

Re: Logitech G15 Integration

Postby Renegade » Thu Mar 04, 2010 1:53 pm

I'm working on a mod system to allow hooks into HLDJ. If you check the thread in General "Developing with HLDJ's interface" you can get a jist of what's possible. Few have expressed interest though so I've put it on the back-burner in favour of automatic mp3 conversion, but it's about half-way done.

For what you intend, I see two options:
1) Create an app that repeatedly checks hldj_curaudio.cfg and sends the result to G15
2) Modify the HLDJ source to update G15 when a new file is loaded

The first should be straight-forward and easy to implement yourself (assuming you already have what you need for G15), the second is more efficient/effective but you'll need a GCC compiler for compiling HLDJ and some tips from myself (though if you're familiar with C/C++ it should also be straight-forward).

You can find a slightly-old revision of HLDJ source here:
The functions you'd be interested in modifying are in src/hldj_api.c, specifically "hldj_LoadFilePath" and "hldj_LoadFileIndex".

If you are interested in doing option #2, you can get started setting up now and I'll update the repo and give you pointers afterwards. Later if/when I get the mod interface finished, you can port the code over to a redistributable DLL.
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest