Skip to content

Keyboard Move Sprite #19

Answered by mattjennings
josiahdowdy asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @josiahdowdy, glad you are enjoying it!

Pixi.js doesn't offer anything for handling keyboard events, but you can set up a listener on the window for keydown or similar in your Svelte components. The events emitted from the SveltePixi components are directly forwarded from the underlying Pixi.js instance, which largely only includes mouse/pointer-based events.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@josiahdowdy
Comment options

Answer selected by josiahdowdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants