pspdev / pspsdk

An open-source SDK for PSP homebrew development.
Other
856 stars 143 forks source link

Make analog stick values more readable in basic control sample #237

Closed sblondon closed 2 days ago

sblondon commented 2 days ago

When the SceCtrlData.Lx value changes, the length of the value can change (from 1 character to 3 characters) so the string for Ly moves to the right by one or two characters. The SceCtrlData.Lx and Ly are unsigned char so the value are between 0 (one character length) and 255 (3 characters length). It's more readable by fixing the size for the value to 3 characters wide so the string to Ly does not move.

sblondon commented 2 days ago

I have written the same PR on pspdev.github.io repository.

sharkwouter commented 2 days ago

Thanks for this change, this looks better. I've changed the title of the PR because we now use them in our changelogs for releases. I hope it's okay for you like that.

sblondon commented 2 days ago

No problem, the title is clearer now!