add fullscreen mode
This commit is contained in:
parent
b2b12b64ab
commit
5160ec4b0b
6 changed files with 183 additions and 120 deletions
|
@ -11,7 +11,8 @@ void script_system::load(sol::table &ns)
|
|||
"update",&window::update,
|
||||
"title",sol::writeonly_property(&window::set_title),
|
||||
"size",sol::property(&window::size,&window::set_size),
|
||||
"position",sol::property(&window::position,&window::set_position)
|
||||
"position",sol::property(&window::position,&window::set_position),
|
||||
"fullscreen",sol::property(&window::fullscreen,&window::set_fullscreen)
|
||||
);
|
||||
|
||||
ns.new_usertype<input>("input",
|
||||
|
@ -19,6 +20,7 @@ void script_system::load(sol::table &ns)
|
|||
"get",&input::get,
|
||||
"mouse_position",sol::readonly_property(&input::mouse_position),
|
||||
"mouse_button",sol::readonly_property(&input::mouse_button),
|
||||
"mouse_pressed",sol::readonly_property(&input::mouse_pressed),
|
||||
"input_string",sol::readonly_property(&input::input_string)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue