Search found 34 matches
- Fri Nov 24, 2023 8:24 pm
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
If the above test behaves the same way for you as it does for me, could you please give this program the once-over? Does it print the correct textinput events for all the printable keys on your keyboard? Keys_down = {} function love.keypressed(key) Keys_down[key] = true end function love.textinput(t...
- Fri Nov 24, 2023 7:58 pm
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
Here's a test program. For me with LÖVE 11.4, pretty much any chord involving modifiers triggers the `textinput` event.
Code: Select all
function love.keypressed(key)
print('keypressed', key)
end
function love.textinput(t)
print('textinput', t)
end
- Fri Nov 24, 2023 4:26 pm
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
Thanks a lot for those details!
- Fri Nov 24, 2023 7:53 am
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
The reason for that logic: I want to handle shortcuts like ctrl+c to copy in `love.keypressed` without also inserting the printable character within `love.textinput`. I wonder if there's a better way to achieve that..
- Fri Nov 24, 2023 7:42 am
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
I'm not doing any strange checking of caps-lock. I _do_ check for some modifiers though at https://git.sr.ht/~akkartik/carousel.love/tree/eccda8de/item/text.lua#L158. That's probably no good for a layout like this.. Do you know what modifier key LÖVE returns when you press caps lock in your setup. H...
- Fri Nov 24, 2023 6:02 am
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
The space on the right is available for your programs, as my examples show :) I'd appreciate alternative suggestions! My goals are to keep the text at a readable width (around 40em at most), and to support everything from phones to large monitors with something simple. The choice of editor width is ...
- Fri Nov 24, 2023 5:55 am
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Re: Lua Carousel: a programming environment for computers and mobile devices
Both those issues are unexpected indeed. I'm only looking for those keys in `love.textinput`, not `love.keypressed`. Though I've been watching out for reports from other keyboard layouts for some time: https://github.com/akkartik/lines.love/commit/1e33eeeffcb979301 Can I ask what device + OS (+ keyb...
- Thu Nov 23, 2023 7:15 pm
- Forum: Libraries and Tools
- Topic: Lua Carousel: a programming environment for computers and mobile devices
- Replies: 25
- Views: 99481
Lua Carousel: a programming environment for computers and mobile devices
It's nowhere near done yet, but I just published my new project, Lua Carousel, a lightweight cross-platform environment for creating small Lua and LÖVE programs. It's been tested across a wide variety of screen sizes on Windows, Linux, Mac, iOS and Android. On Windows, Linux and Mac you can also edi...
- Mon Aug 28, 2023 7:48 pm
- Forum: Libraries and Tools
- Topic: MiniIDE: live code inside a LOVE app
- Replies: 13
- Views: 26001
Re: MiniIDE: live code inside a LOVE app
One new thing inside the latest version is a list of manual tests that we're using before publishing new versions of MiniIDE. It might be useful also to others, to get a sense of the kinds of LÖVE apps you can build from within MiniIDE. Here it is: How we the creators expect MiniIDE to behave in a f...
- Tue Aug 15, 2023 6:28 am
- Forum: Support and Development
- Topic: Any intermediary love objects that will allow importing images from outside the Love source folder on iOS?
- Replies: 5
- Views: 915
Re: Any intermediary love objects that will allow importing images from outside the Love source folder on iOS?
Here's a program that will load images from anywhere on your system, using the pure-Lua nativefs library (https://github.com/EngineerSmith/nativefs) Just include nativefs.lua in the .love file with the following main.lua: nativefs = require 'nativefs' Image = nil function love.load() local filename ...