-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// This file is part of the Corona game engine. | ||
// For overview and more information on licensing please refer to README.md | ||
// Home page: https://github.com/coronalabs/corona | ||
// Contact: [email protected] | ||
// PluginHwCursor.h | ||
// | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
@@ -12,16 +9,15 @@ | |
|
||
#include <string> | ||
#include <Windows.h> | ||
#include <commctrl.h> | ||
#include <stringapiset.h> | ||
|
||
#include <CoronaLua.h> | ||
#include <CoronaMacros.h> | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
// This corresponds to the name of the library, e.g. [Lua] require "plugin.hwcursor" | ||
// where the '.' is replaced with '_' | ||
CORONA_EXPORT int luaopen_plugin_hwcursor( lua_State *L ); | ||
CORONA_EXPORT int luaopen_plugin_hwcursor(lua_State *L); | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
|
@@ -30,6 +26,7 @@ CORONA_EXPORT int luaopen_plugin_hwcursor( lua_State *L ); | |
// ---------------------------------------------------------------------------- | ||
|
||
static int initPlugin(lua_State *L); | ||
static int freePlugin(lua_State *L); | ||
static int loadCursor(lua_State *L); | ||
static int freeCursor(lua_State *L); | ||
static int showCursor(lua_State *L); | ||
|
@@ -44,6 +41,6 @@ std::wstring s2ws(const std::string &s) { | |
len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, 0, 0); | ||
std::wstring buf; | ||
buf.resize(len); | ||
MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, const_cast<wchar_t *>(buf.c_str()), len); | ||
MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, const_cast<wchar_t*>(buf.c_str()), len); | ||
return buf; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters