Skip to content
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

Implement ISteamInput #23

Merged
merged 4 commits into from
Aug 19, 2021
Merged

Implement ISteamInput #23

merged 4 commits into from
Aug 19, 2021

Conversation

Davidobot
Copy link
Contributor

@Davidobot Davidobot commented Aug 11, 2021

An implementation of the ISteamInput Interface.

Docs written and ready for full review and merging.

@Davidobot
Copy link
Contributor Author

Wrote the docs so it's ready for a full review! 🎉

Copy link
Collaborator

@yancouto yancouto left a comment

Choose a reason for hiding this comment

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

Thanks for this!

That's A LOT of new functions. Did you test any of these in an actual game? If so, let me know, will make it easier to review.

The overall implementation seems fine, I left a few comments mostly around consistency with the rest of the code. Didn't look at the docs yet, will do once you do these changes.

src/core.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
src/input.cpp Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
@Davidobot
Copy link
Contributor Author

Thanks, @yancouto!

I think I addressed everything you mentioned.

Did you test any of these in an actual game? If so, let me know, will make it easier to review.

Tested a few of them, but limited to the vibration functions, getMotionData, showBindingPanel, and getConnectedControllers. They all work as intended!

Copy link
Collaborator

@yancouto yancouto left a comment

Choose a reason for hiding this comment

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

It's great to hear you tested some of these and they work :)

Some final things to be addressed and it should be good to merge.

src/input.cpp Show resolved Hide resolved
src/input.cpp Outdated
// void TriggerRepeatedHapticPulse( InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags );
EXTERN int luasteam_triggerRepeatedHapticPulse(lua_State *L) {
uint64 inputHandle = luasteam::checkuint64(L, 1);
bool eTargetPad = lua_toboolean(L, 2);

This comment was marked as resolved.

src/core.cpp Outdated Show resolved Hide resolved
docs/input.rst Outdated Show resolved Hide resolved
docs/input.rst Outdated Show resolved Hide resolved
 - Add examples for EInputActionOrigin parameters
 - Make left/right pad into an enum
 - Change module shutdown order
@Davidobot
Copy link
Contributor Author

Sorry for making you repeat yourself with certain comments.

Everything should be addressed now :) Thanks!

Copy link
Collaborator

@yancouto yancouto left a comment

Choose a reason for hiding this comment

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

Looks good now! Thanks a lot, this is a great contribution.

Do you plan to submit other PR's soon? (If you don't, I'll make a release with these changes soon, otherwise I'll wait for your other changes to make a single release)

@yancouto yancouto merged commit f71e98d into uspgamedev:master Aug 19, 2021
@Davidobot
Copy link
Contributor Author

I think this is the only module we needed for our project that wasn't already implemented, so I don't think I'll be pushing any more PRs any time soon.

Thanks for the review!

@yancouto
Copy link
Collaborator

This was just release on 1.2.0. Thanks @Davidobot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants