Demos updated to remove now deprecated function gwinAttachMouse
This commit is contained in:
parent
72d04f891b
commit
e7bc175ca0
10 changed files with 10 additions and 42 deletions
|
@ -67,9 +67,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -61,9 +61,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,6 @@ int main(void) {
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
gfxInit();
|
gfxInit();
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// Set the widget defaults
|
// Set the widget defaults
|
||||||
gwinSetDefaultFont(gdispOpenFont("*"));
|
gwinSetDefaultFont(gdispOpenFont("*"));
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
|
|
|
@ -115,9 +115,6 @@ int main(void) {
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
gfxInit();
|
gfxInit();
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// Set the widget defaults
|
// Set the widget defaults
|
||||||
gwinSetDefaultFont(gdispOpenFont("*"));
|
gwinSetDefaultFont(gdispOpenFont("*"));
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
|
|
|
@ -117,9 +117,6 @@ int main(void) {
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
gfxInit();
|
gfxInit();
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// Set the widget defaults
|
// Set the widget defaults
|
||||||
gwinSetDefaultFont(gdispOpenFont("*"));
|
gwinSetDefaultFont(gdispOpenFont("*"));
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
|
|
|
@ -63,9 +63,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -79,9 +79,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -83,9 +83,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -59,9 +59,6 @@ int main(void) {
|
||||||
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
|
||||||
gdispClear(White);
|
gdispClear(White);
|
||||||
|
|
||||||
// Attach the mouse input
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
|
|
||||||
// create the widget
|
// create the widget
|
||||||
createWidgets();
|
createWidgets();
|
||||||
|
|
||||||
|
|
|
@ -418,11 +418,6 @@ int main(void) {
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
gfxInit();
|
gfxInit();
|
||||||
|
|
||||||
// Connect the mouse
|
|
||||||
#if GINPUT_NEED_MOUSE
|
|
||||||
gwinAttachMouse(0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Set the widget defaults
|
// Set the widget defaults
|
||||||
font = gdispOpenFont("*"); // Get the first defined font.
|
font = gdispOpenFont("*"); // Get the first defined font.
|
||||||
gwinSetDefaultFont(font);
|
gwinSetDefaultFont(font);
|
||||||
|
|
Loading…
Add table
Reference in a new issue