summaryrefslogtreecommitdiff
path: root/src/client/keyboardBuffer.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2009-05-23 15:41:18 +0200
committerxHire <xhire@tuxportal.cz>2009-05-26 01:11:32 +0200
commit4d4dae5cc3a2bf32421ad2d4255079eb1d731647 (patch)
tree064450f544b7ba8477cd8c5e51a8410a27a070c0 /src/client/keyboardBuffer.h
parentc2c1664831c48e841296eb85318f8a63f44856c8 (diff)
Rectified the coding style in client .h files
Diffstat (limited to 'src/client/keyboardBuffer.h')
-rw-r--r--src/client/keyboardBuffer.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/client/keyboardBuffer.h b/src/client/keyboardBuffer.h
index 1810223..e3596ef 100644
--- a/src/client/keyboardBuffer.h
+++ b/src/client/keyboardBuffer.h
@@ -1,25 +1,15 @@
-/*
- * keyboardBuffer.h
- *
- * Created on: 1.8.2008
- * Author: Karel Podvolecky
- *
- * Jednoducha fronta stisknutych klaves.
- */
-
#ifndef KEYBOARD_BUFFER_H
+#define KEYBOARD_BUFFER_H
-# define KEYBOARD_BUFFER_H
-
-# include <SDL.h>
-# include "main.h"
+#include <SDL.h>
+#include "main.h"
typedef struct {
- SDL_keysym *buff; /* buffer klaves (kod dle SDLKey enumu) */
- int size; /* aktualni velikost alokovaneho bufferu (v poctu uchovatelnych klaves) */
- int count; /* pocet klaves aktualne v bufferu */
- int begin; /* ukazatel na zacatek bufferu (tj. kam se pridavaji klavesy) */
- int end; /* ukazatel na konec bufferu (tj. odkud se odebiraji klavesy) */
+ SDL_keysym *buff; /* buffer of keys (code according to the SDLKey enum) */
+ int size; /* up-to-date size of allocated buffer (size == number of saveable keys) */
+ int count; /* up-to-date number of keys saved in the buffer */
+ int begin; /* pointer to the beginning of the buffer (i.e. where to add new keys to) */
+ int end; /* pointer to the end of the buffer (i.e. where to remove old keys from) */
} keyboardBuffer_t;
extern void keyboard_buffer_init(int size);
@@ -31,4 +21,4 @@ extern int keyboard_buffer_get_count();
extern bool_t keyboard_buffer_is_any_key();
extern void keyboard_buffer_quit();
-#endif /* KEYBOARDBUFFER_H_ */
+#endif /* KEYBOARD_BUFFER_H */