-
-
Notifications
You must be signed in to change notification settings - Fork 97
WIP: Initial parts of Steam Input API support #1695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
For this, Looks like you need to add |
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.