Input like I'm typing?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Fingoltin
Prole
Posts: 2
Joined: Fri Apr 06, 2018 12:26 am

Input like I'm typing?

Post by Fingoltin »

What is the best way to accept input as if I was typing? As in, when you hold down a key it will take it once and then pause, and then not go too fast. I couldn't find an answer anywhere.
User avatar
slime
Solid Snayke
Posts: 3160
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Input like I'm typing?

Post by slime »

The love.textinput callback should do what you want.
Fingoltin
Prole
Posts: 2
Joined: Fri Apr 06, 2018 12:26 am

Re: Input like I'm typing?

Post by Fingoltin »

That works wonderfully, thanks! Don't know how that didn't come up.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests