[DEV] some correction of the display
This commit is contained in:
parent
291da66c15
commit
3653ba1761
@ -194,6 +194,12 @@ namespace gale {
|
|||||||
* @param[in] _clipboardId Id of the clipboard.
|
* @param[in] _clipboardId Id of the clipboard.
|
||||||
*/
|
*/
|
||||||
virtual void onClipboardEvent(enum gale::context::clipBoard::clipboardListe _clipboardId);
|
virtual void onClipboardEvent(enum gale::context::clipBoard::clipboardListe _clipboardId);
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* @brief Call every time a draw is called (not entirely periodic, but faster at we can ...
|
||||||
|
* @param[in] _time Current time of the call;
|
||||||
|
*/
|
||||||
|
virtual void onPeriod(int64_t _time) {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,6 +471,7 @@ void gale::Context::OS_SetKeyboard(gale::key::Special& _special,
|
|||||||
}
|
}
|
||||||
data->TypeMessage = eSystemMessage::msgKeyboardKey;
|
data->TypeMessage = eSystemMessage::msgKeyboardKey;
|
||||||
data->stateIsDown = _isDown;
|
data->stateIsDown = _isDown;
|
||||||
|
data->keyboardMove = gale::key::keyboard_char;
|
||||||
data->keyboardChar = _myChar;
|
data->keyboardChar = _myChar;
|
||||||
data->keyboardSpecial = _special;
|
data->keyboardSpecial = _special;
|
||||||
data->repeateKey = _isARepeateKey;
|
data->repeateKey = _isARepeateKey;
|
||||||
@ -536,8 +537,6 @@ void gale::Context::clipBoardSet(enum gale::context::clipBoard::clipboardListe _
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
||||||
// TODO : Remove this force at true ...
|
|
||||||
_displayEveryTime = true;
|
|
||||||
int64_t currentTime = gale::getTime();
|
int64_t currentTime = gale::getTime();
|
||||||
// this is to prevent the multiple display at the a high frequency ...
|
// this is to prevent the multiple display at the a high frequency ...
|
||||||
#if (!defined(__TARGET_OS__Android) && !defined(__TARGET_OS__Windows))
|
#if (!defined(__TARGET_OS__Android) && !defined(__TARGET_OS__Windows))
|
||||||
@ -558,9 +557,10 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
|||||||
// set the curent interface :
|
// set the curent interface :
|
||||||
lockContext();
|
lockContext();
|
||||||
processEvents();
|
processEvents();
|
||||||
// call all the widget that neded to do something periodicly
|
// call all the application for periodic request (the application manage multiple instance ...
|
||||||
// TODO : m_objectManager.timeCall(currentTime);
|
if (m_application != nullptr) {
|
||||||
// check if the user selected a windows
|
m_application->onPeriod(currentTime);
|
||||||
|
}
|
||||||
if (m_application != nullptr) {
|
if (m_application != nullptr) {
|
||||||
// Redraw all needed elements
|
// Redraw all needed elements
|
||||||
m_application->onRegenerateDisplay(*this);
|
m_application->onRegenerateDisplay(*this);
|
||||||
|
@ -111,9 +111,9 @@ namespace gale {
|
|||||||
* @brief The current context is set in background (framerate is slowing down (max fps)/5 # 4fps)
|
* @brief The current context is set in background (framerate is slowing down (max fps)/5 # 4fps)
|
||||||
*/
|
*/
|
||||||
virtual void OS_Background();
|
virtual void OS_Background();
|
||||||
|
public:
|
||||||
void requestUpdateSize();
|
void requestUpdateSize();
|
||||||
|
protected:
|
||||||
// return true if a flush is needed
|
// return true if a flush is needed
|
||||||
bool OS_Draw(bool _displayEveryTime);
|
bool OS_Draw(bool _displayEveryTime);
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user