Search found 5 matches
- Mon Nov 19, 2018 6:12 am
- Forum: Support and Development
- Topic: love.keyboard.isDown() error [SOLVED]
- Replies: 0
- Views: 2309
love.keyboard.isDown() error [SOLVED]
The following code: function love.update(dt) if love.keyboard.isDown('h') then print('h') end end Gives me the error: attempt to index field 'keyboard' (a nil value) What am I missing? I couldn't find anything in the documentation about love.keyboard being deprecated. EDIT: Of course I figured it ou...
- Fri Feb 02, 2018 10:17 am
- Forum: Support and Development
- Topic: Using modf in shader
- Replies: 11
- Views: 5998
Re: Using modf in shader
Thank you grump and fluffy, I'll try those!
So I guess it's not possible to modify the header to use another version of GLSL?
So I guess it's not possible to modify the header to use another version of GLSL?
- Wed Jan 31, 2018 8:27 am
- Forum: Support and Development
- Topic: Using modf in shader
- Replies: 11
- Views: 5998
Using modf in shader
I want to use the modf function in a shader, but the compiler tells me global function modf requires "#version 130" or later So I tried adding #version 130 to my shader, but the compiler complains: version directive must be first statement and may not be repeated Is it possible to use a ne...
- Fri Aug 18, 2017 11:55 am
- Forum: Support and Development
- Topic: Mimicking behavior of love.keypressed
- Replies: 3
- Views: 3951
Re: Mimicking behavior of love.keypressed
Maybe it's due to the fact that you're calling next_scene in the middle of the update. Try, for debugging purposes, to remove next_scene() from keypressed and instead add this in love.update: if love.keyboard.isDown("w") then next_scene() end To see if it causes the same issue. If so, you...
- Fri Aug 18, 2017 9:56 am
- Forum: Support and Development
- Topic: Mimicking behavior of love.keypressed
- Replies: 3
- Views: 3951
Mimicking behavior of love.keypressed
I'm using SiENcE's fabulous midi library to get input from a midi controller. That's working great, but when I put my midi listener in love.update, it seems to interfere with the drawing thread. For example, here's code that changes the background image when I press the midi note '48': function love...