mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Merge pull request #237 from sblondon/display-controller-example-improvement
More readable pad values
This commit is contained in:
@@ -74,8 +74,8 @@ int main(void)
|
|||||||
|
|
||||||
sceCtrlReadBufferPositive(&pad, 1);
|
sceCtrlReadBufferPositive(&pad, 1);
|
||||||
|
|
||||||
pspDebugScreenPrintf("Analog X = %d ", pad.Lx);
|
pspDebugScreenPrintf("Analog X = %3d ", pad.Lx);
|
||||||
pspDebugScreenPrintf("Analog Y = %d \n", pad.Ly);
|
pspDebugScreenPrintf("Analog Y = %3d \n", pad.Ly);
|
||||||
|
|
||||||
if (pad.Buttons != 0){
|
if (pad.Buttons != 0){
|
||||||
if (pad.Buttons & PSP_CTRL_SQUARE){
|
if (pad.Buttons & PSP_CTRL_SQUARE){
|
||||||
|
Reference in New Issue
Block a user