Skip to content
Snippets Groups Projects
Commit 10103d90 authored by Joakim Hunskaar's avatar Joakim Hunskaar
Browse files

argument types in textinput are now compatible

parent 7a3ddf60
No related branches found
No related tags found
1 merge request!7Dropdownlist is now more similar to the other widgets
#include "widgets/TextInput.h" #include "widgets/TextInput.h"
void TDT4102::TextInput::update(nk_context *context) { void TDT4102::TextInput::update(nk_context *context) {
nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE, contents.data(), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii); nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE, const_cast<char*>(contents.data()), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii);
// Detect whether any editing of the string has occurred // Detect whether any editing of the string has occurred
// Nuklear only reports whether the text box has lost focus // Nuklear only reports whether the text box has lost focus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment