Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gamepad tester
#3
Looks good to me, ill be sure to test my xbox 360 controller with it in the next couple of days and report back...

Code: (Select All)
sub resetAxisAmplitude(aa() as axis_amplitude_type)
    for i% = lbound(aa) to ubound(aa)
        aa(i%).min = 255
        aa(i%).max = 0
    next i%
end sub

sub displayTextCenter(d&,x%,y%,c&,t$)
    _dest d&
    color c&, _rgba(0,0,0,0)
    _printstring(x% - _printwidth(t$,d&)/ 2,y%),t$
end sub

sub displayTextAlignLeft(d&,x%,y%,c&,t$)
    _dest d&
    color c&, _rgba(0,0,0,0)
    _printstring(x%,y%),t$
end sub

sub displayTextAlignRight(d&,x%,y%,c&,t$)
    _dest d&
    color c&, _rgba(0,0,0,0)
    _printstring(x% - _printwidth(t$,d&),y%),t$
end sub

These should all be in one sub in my head, an Allignment flag dictating left middle or right, it'll save the select cases youve got handling it too...other wise...nice work! 

John
Reply


Messages In This Thread
gamepad tester - by Herve - 09-07-2025, 09:12 PM
RE: gamepad tester - by Herve - 09-09-2025, 07:10 PM
RE: gamepad tester - by Unseen Machine - 09-09-2025, 10:28 PM
RE: gamepad tester - by SMcNeill - 09-10-2025, 12:21 AM
RE: gamepad tester - by Herve - 09-10-2025, 06:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)