-
Notifications
You must be signed in to change notification settings - Fork 0
/
userInput.h
41 lines (28 loc) · 833 Bytes
/
userInput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//userInput.c - User input for assignment 2
//Connor Nicholson
//16 May 20
#ifndef USERINPUT_H
#define USERINPUT_H
#include <GL/freeglut.h>
#include "animation.h"
extern float angle;
extern float angle1;
// actual vector representing the camera's direction
extern float lx;
extern float ly;
extern float lz;
// XYZ position of the camera
extern float xc;
extern float yc;
extern float zc;
extern float speed;
extern float xrotSpeed; //mouse sensitivity
extern float yrotSpeed; //mouse sensitivity
/************************************************************/
void mouseMovement(int x, int y);
void mouseClick(int button, int state, int x, int y);
void processMouse(void);
void keyPressed(unsigned char key, int x, int y);
void keyUp(unsigned char key, int x, int y);
void processKeys(void);
#endif // USERINPUT_H