diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-04-12 14:29:51 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-04-12 14:29:51 +0200 |
| commit | 876fc624df9728ee0feee26e1b31b53ed9ef3326 (patch) | |
| tree | e20814ab6d07fb892284dcee11bc492532bdabaa /src/client/keyboardBuffer.c | |
| parent | dff1cbc31ca8d585c01f5bebd08e50cf07fd2b0c (diff) | |
convert all name function from oldName to new_name
Diffstat (limited to 'src/client/keyboardBuffer.c')
| -rw-r--r-- | src/client/keyboardBuffer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/keyboardBuffer.c b/src/client/keyboardBuffer.c index 0454bdb..aff7b67 100644 --- a/src/client/keyboardBuffer.c +++ b/src/client/keyboardBuffer.c @@ -23,7 +23,7 @@ static SDL_keysym emptyKey; /* * Key buffer initializes. The parameter sets the number of keys. */ -void initKeyboardBuffer(int size) +void keyboardBuffer_init(int size) { assert(size > 0); assert(keyboardBuffer == NULL); @@ -47,7 +47,7 @@ void initKeyboardBuffer(int size) /* * Empty the buffer */ -void clearKeyboardBuffer() +void keyboardBuffer_clear() { assert(keyboardBuffer != NULL); @@ -61,7 +61,7 @@ void clearKeyboardBuffer() * Adds key to the end of the buffer. If the buffer is overrun, * an error is printed to stderr and the key is dropped. */ -bool_t pushKeyToKeyboardBuffer(SDL_keysym key) +bool_t keyboardBuffer_push(SDL_keysym key) { assert(keyboardBuffer != NULL); @@ -86,7 +86,7 @@ bool_t pushKeyToKeyboardBuffer(SDL_keysym key) * Takes out first key from the buffer and returns it. If the buffer is empty, * an error is printed to stderr and SDLK_UNKNOWN is returned. */ -SDL_keysym popKeyFromKeyboardBuffer() +SDL_keysym keyboardBuffer_pop() { assert(keyboardBuffer != NULL); @@ -112,7 +112,7 @@ SDL_keysym popKeyFromKeyboardBuffer() /* * The buffer size */ -int getKeyboardBufferSize() +int keyboardBuffer_get_size() { assert(keyboardBuffer != NULL); return keyboardBuffer->size; @@ -121,23 +121,23 @@ int getKeyboardBufferSize() /* * Number of keys in the buffer */ -int KeyboardBufferCount() +int keyboardBuffer_get_count() { assert(keyboardBuffer != NULL); return keyboardBuffer->count; } -bool_t isAnyKeyInKeyboardBuffer() +bool_t keyboardBuffer_is_any_key() { - return KeyboardBufferCount() > 0 ? TRUE : FALSE; + return keyboardBuffer_get_count() > 0 ? TRUE : FALSE; } /* * Frees the buffer. If it is not empty, information * about filling is prined to stderr first. */ -void quitKeyboardBuffer() +void keyboardBuffer_quit() { assert(keyboardBuffer != NULL); |