mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 14:46:19 +00:00
Added documentation for some scancodes
This commit is contained in:
@@ -825,6 +825,26 @@ fgrep SDL_SCANCODE scancodes_linux.h | while read line; do
|
||||
done
|
||||
#endif /* end script */
|
||||
|
||||
#if 0 /* A shell script to get comments from the Linux header for these keys */
|
||||
#!/bin/bash
|
||||
|
||||
function get_comment
|
||||
{
|
||||
name=$(echo "$1" | awk '{print $7}')
|
||||
if [ "$name" != "" ]; then
|
||||
egrep "$name\s" /usr/include/linux/input-event-codes.h | fgrep "/*" | sed 's,[^/]*/,/,'
|
||||
fi
|
||||
}
|
||||
|
||||
fgrep SDL_SCANCODE scancodes_linux.h | while read line; do
|
||||
comment=$(get_comment "$line")
|
||||
if [ "$comment" != "" ]; then
|
||||
echo " $line $comment"
|
||||
fi
|
||||
done
|
||||
#endif /* end script */
|
||||
|
||||
|
||||
/* *INDENT-ON* */ /* clang-format on */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
Reference in New Issue
Block a user