Skip to content

Conversation

@RobertCochran
Copy link

WIP for Steam Input support, as requested on Discord.

There are several things that don't work, aren't implemented the way I'm supposed to, etc.

Perhaps the most important thing to note is that I broke the build for the Red Eclipse server. That needs addressing but it's not short-term important.

@RobertCochran RobertCochran requested a review from a team as a code owner January 28, 2026 06:36
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Steam Input action definitions file. Steam reads this to know what actions are available and what kind of actions they are. This is still WIP.

ISteamUserStats *stats = NULL;
ISteamClient *client = NULL, *sclient = NULL;
ISteamGameServer *serv = NULL;
ISteamInput *input = NULL;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of places where the whitespace is inconsistent. Sorry. I'll be sure it's fixed when I am ready to actually get this PR reviewed.

if(d)
{
float scale = (focus == player1 && inzoom() && zoomsensitivity > 0 ? (1.f-((zoomlevel+1)/float(zoomlevels+2)))*zoomsensitivity : 1.f)*sensitivity;
float scale = zoomsens()*sensitivity;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The zoom scaling code got factored out into a helper function so that it could be used inside the controller code.

f += (bf-f)*amt;
}

#define mousesens(a,b,c) ((float(a)/float(b))*c)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This macro moved here to the header so that it could be used inside the controller code.

@qreeves qreeves marked this pull request as draft January 28, 2026 08:18
@qreeves qreeves requested review from qreeves and removed request for a team January 28, 2026 08:18
@qreeves qreeves added this to the 2.1.0 milestone Jan 28, 2026
@Jigoku
Copy link
Member

Jigoku commented Jan 28, 2026

Perhaps the most important thing to note is that I broke the build for the Red Eclipse server. That needs addressing but it's not short-term important.

For this, Looks like you need to add game/controller.o to CLIENT_OBJS in the Makefile so that the compiler can link it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants