Skip to content

reimplement OpenSHC::Input::MouseState 100% - #211

Draft
TheRedDaemon wants to merge 18 commits into
mainfrom
reimpl/mouse-state
Draft

reimplement OpenSHC::Input::MouseState 100%#211
TheRedDaemon wants to merge 18 commits into
mainfrom
reimpl/mouse-state

Conversation

@TheRedDaemon

Copy link
Copy Markdown
Contributor

No description provided.

@TheRedDaemon
TheRedDaemon requested a review from gynt August 28, 2026 20:17
@TheRedDaemon TheRedDaemon added the in progress PR functions as reminder, input not needed yet. label Aug 28, 2026
@TheRedDaemon TheRedDaemon added declaration/type change This requires changes to the generated/exported types or definitions. and removed in progress PR functions as reminder, input not needed yet. labels Aug 30, 2026
@TheRedDaemon TheRedDaemon changed the title reimplement OpenSHC::Input::MouseState reimplement OpenSHC::Input::MouseState 100% Aug 30, 2026
namespace Input {
namespace Mouse {
typedef byte ClickTypeBitMaskEnumByte;
typedef char ClickTypeBitMaskEnumByte;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You sure? Changing this would mean changing all enum bytes to enum chars, which is fine I guess, since original enum is also usually int (not uint). Just want to be sure before I implement such a large change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. While a while, I clearly remember that I was hesitant and tested around, but it is a char.

Comment thread src/OpenSHC/Input/MouseState.hpp Outdated
BOOLEnum leftClickState; // 0x00000040 length: 4
BOOLEnum midClickState; // 0x00000044 length: 4
BOOLEnum rightClickState; // 0x00000048 length: 4
int rightClickState; // 0x00000048 length: 4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You do use TRUE and FALSE in the .cpp files. Are you sure it should be an int?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since this is just an alias for and int it actually has no effect on the logic. I reverted the change, no idea why I did this.

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

Labels

declaration/type change This requires changes to the generated/exported types or definitions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants