Skip to content

Commit 6827bdb

Browse files
authored
Add missing enum method for axis count
1 parent fff12c5 commit 6827bdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/raylib-cr/raylib.cr

+4
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ lib Raylib
269269
RightY = 3
270270
LeftTrigger = 4
271271
RightTrigger = 5
272+
273+
def get(player : Player)
274+
Raylib.get_gamepad_axis_movement(player.to_i, self.to_i)
275+
end
272276
end
273277

274278
enum MaterialMapIndex

0 commit comments

Comments
 (0)