Пример #1
0
static int allua_mouse_set_xy(lua_State * L)
{
   ALLUA_display display = allua_check_display(L, 1);
   int x = luaL_checkint(L, 2);
   int y = luaL_checkint(L, 3);
   lua_pushboolean(L, al_set_mouse_xy(display, x, y));
   return 1;
}
Пример #2
0
static int allua_Filechooser_show(lua_State * L)
{
   ALLUA_filechooser d = allua_check_filechooser(L, 1);
   ALLUA_display display = NULL;
   if (!lua_isnoneornil(L, 2))
      display = allua_check_display(L, 2);
   al_show_native_file_dialog(display, d);
   return 0;
}
Пример #3
0
static int allua_mouse_show_cursor(lua_State * L)
{
   ALLUA_display display = allua_check_display(L, 1);
   lua_pushboolean(L, al_show_mouse_cursor(display));
   return 1;
}