Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
56aecc48
Commit
56aecc48
authored
Jul 06, 2010
by
dewyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mouse button click to toggle IMM.
parent
71f0192c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
App.hpp
EXCLUDE/GLIMM/include/App.hpp
+2
-1
App.cpp
EXCLUDE/GLIMM/src/App.cpp
+10
-3
No files found.
EXCLUDE/GLIMM/include/App.hpp
View file @
56aecc48
...
@@ -19,6 +19,7 @@ public:
...
@@ -19,6 +19,7 @@ public:
virtual
void
On_Key_Up
(
int
Key
);
virtual
void
On_Key_Up
(
int
Key
);
virtual
void
On_Char
(
unsigned
int
Char
);
virtual
void
On_Char
(
unsigned
int
Char
);
virtual
void
On_Resized
(
unsigned
int
Width
,
unsigned
int
Height
);
virtual
void
On_Resized
(
unsigned
int
Width
,
unsigned
int
Height
);
virtual
void
On_Mouse_Button_Down
(
Mouse_Button
Button
);
private
:
private
:
void
Update
();
void
Update
();
...
@@ -27,7 +28,7 @@ private:
...
@@ -27,7 +28,7 @@ private:
static
const
int
Width
=
800
;
static
const
int
Width
=
800
;
static
const
int
Height
=
600
;
static
const
int
Height
=
600
;
static
const
int
Bits_Per_Pixel
=
32
;
static
const
int
Bits_Per_Pixel
=
32
;
static
const
bool
Fullscreen
=
fals
e
;
static
const
bool
Fullscreen
=
tru
e
;
Window
my_Window
;
Window
my_Window
;
bool
my_Done
;
bool
my_Done
;
...
...
EXCLUDE/GLIMM/src/App.cpp
View file @
56aecc48
...
@@ -57,9 +57,6 @@ void App::On_Key_Down(int Key)
...
@@ -57,9 +57,6 @@ void App::On_Key_Down(int Key)
case
VK_ESCAPE
:
case
VK_ESCAPE
:
On_Close
();
On_Close
();
break
;
break
;
case
VK_TAB
:
my_Window
.
Get_IMM
().
Toggle
();
break
;
}
}
}
}
...
@@ -83,6 +80,16 @@ void App::On_Resized(unsigned int Width, unsigned int Height)
...
@@ -83,6 +80,16 @@ void App::On_Resized(unsigned int Width, unsigned int Height)
glLoadIdentity
();
glLoadIdentity
();
}
}
void
App
::
On_Mouse_Button_Down
(
Mouse_Button
Button
)
{
switch
(
Button
)
{
case
Mouse_Button_Left
:
my_Window
.
Get_IMM
().
Toggle
();
break
;
}
}
void
App
::
Update
()
void
App
::
Update
()
{
{
Rotation
+=
0.2
f
;
Rotation
+=
0.2
f
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment