function on_input(self, action_id, action)
if action_id == hash("touch") and action.released then
label.set_text("/go#label1", "untouched")
else
action.pressed = label.set_text("/go#label1", "touched")
end
end
```lua
this is in my code editor

my question is why and how to solve it?
Hello! First of all, you are assigning “action.pressed” to a label, which won’t work. What you want to do is check if the action is pressed.
Secondly, are you using “acquire_input_focus”?
Something like this is what you want:
function init(self)
label.set_text("label", "untouched")
msg.post(".", "acquire_input_focus")
end
function on_input(self, action_id, action)
if action_id == hash("mouse_button_1") and action.released then
label.set_text("label", "untouched")
end
if action_id == hash("mouse_button_1") and action.pressed then
label.set_text("label", "touched")
end
end