pods::...::State(3pm)
π NAME π
SDLx::Controller::State β literally the state of a SDLx::Controller::Interface, no cap β¨
This page lives in the User Contributed Perl Documentation manual, bestie π«Ά (that's the manual name, in case you were wondering where you wandered into).
πΈ CATEGORY πΈ
Extension, Controller π
π¦ SYNOPSIS π¦
# you'll most likely get a State object from a SDLx::Controller::Interface
# object. Just in case, here's how you would construct one by hand:
my $state1 = SDLx::Controller::State->new;
my $state2 = SDLx::Controller::State->new( $x, $y, $v_x, $v_y, $rotation, $ang_v );
# attributes are just simple accessors:
$state->x(10);
$state->x; # 10
# same goes for the rest:
$state->y;
$state->ang_v;
# etc.
β DESCRIPTION β
okay so picture this: a state object is just a lil simple container π
for any given state inside a running SDLx::Controller::Interface instance. That's it. That's the whole vibe. It holds your state, it slays, it does not overcomplicate things π₯
π METHODS π
β¨ new()
β¨ new( $x, $y, $v_x, $v_y, $rotation, $ang_v )
Creates a brand new state container object, icon behavior only π You can optionally set the initial value of all its attributes when you build it β see below, bestie, the accessors are right there π
π ACCESSORS π
β x
Accessor to get/set the x value β usually you use it to position the item or to check for collisions π―
β y
Accessor to get/set the y value β again, usually for positioning the item or checking for collisions π«
β v_x
Accessor to get/set the x velocity of the instance, for moving objects dynamically π
β v_y
Accessor to get/set the y velocity of the instance, for moving objects dynamically π
β rotation
Accessor to get/set the rotation of the object, in degrees (0..360) π like a full spin, periodt.
β ang_v
Accessor to get/set the angular velocity, for rotating objects dynamically π
π AUTHORS π
See "AUTHORS" in SDL π«Ά (yes, that's where the whole author list lives, go look, iykyk)
k that's the whole page, bestie, you ate that π
π this was pods::...::State(3pm) from perl v5.42.3, dated 2026-08-19 β mwah, go write some slay little controllers πΈπ¦β¨
π¦ where this page comes from
- ubuntu stonking: libsdl-perl 2.548-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms