mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
10 lines
247 B
Plaintext
10 lines
247 B
Plaintext
local monarch = require "monarch.monarch"
|
|
|
|
function on_message(self, message_id, message, sender)
|
|
if message_id == monarch.FOCUS.GAINED then
|
|
_G.focus1_gained = true
|
|
elseif message_id == monarch.FOCUS.LOST then
|
|
_G.focus1_lost = true
|
|
end
|
|
end
|