Fix examples to use nk_vec2 in nk_input_scroll() calls.
This commit is contained in:
parent
204e2bdb16
commit
25e6ba2597
@ -307,7 +307,7 @@ static void error_callback(int e, const char *d){printf("Error %d: %s\n", e, d);
|
|||||||
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
||||||
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
||||||
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
||||||
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), (float)yoff);}
|
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), nk_vec2(0, (float)yoff));}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
pump_input(struct nk_context *ctx, GLFWwindow *win)
|
pump_input(struct nk_context *ctx, GLFWwindow *win)
|
||||||
|
@ -734,7 +734,7 @@ static void error_callback(int e, const char *d){printf("Error %d: %s\n", e, d);
|
|||||||
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
||||||
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
||||||
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
||||||
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), (float)yoff);}
|
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), nk_vec2(0, (float)yoff));}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -765,7 +765,7 @@ static void error_callback(int e, const char *d){printf("Error %d: %s\n", e, d);
|
|||||||
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
||||||
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
||||||
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
||||||
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), (float)yoff);}
|
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), nk_vec2(0, (float)yoff));}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -334,7 +334,7 @@ static void error_callback(int e, const char *d){printf("Error %d: %s\n", e, d);
|
|||||||
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
static void text_input(GLFWwindow *win, unsigned int codepoint)
|
||||||
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
{nk_input_unicode((struct nk_context*)glfwGetWindowUserPointer(win), codepoint);}
|
||||||
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
static void scroll_input(GLFWwindow *win, double _, double yoff)
|
||||||
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), (float)yoff);}
|
{UNUSED(_);nk_input_scroll((struct nk_context*)glfwGetWindowUserPointer(win), nk_vec2(0, (float)yoff));}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user