My first contribution on esr :D
I was annoyed because binding quake 3's keys to the german layout didn't work as expected for all keys(e.g. ö,ä,ü)
So I quickly coded me a tool. It creates a config that binds keys from 0x00 to 0xff, to just say the key's code.
This should work for all other layouts aswell.
Maybe it also works for other quake based games.
hf
the code for those who are interested:
#include <fstream>
int main(int argc, char* argv[])
{
std::ofstream out("keys.cfg");
int i;
out << std::hex; // out as hex
for(i=0; i < 16; i++)
out << "bind 0x0" << i << " \"say 0x0" << i << "\"" << std::endl;
for(i=16; i < 256; i++)
out << "bind 0x" << i << " \"say 0x" << i << "\"" << std::endl;
return 0;
}
I was annoyed because binding quake 3's keys to the german layout didn't work as expected for all keys(e.g. ö,ä,ü)
So I quickly coded me a tool. It creates a config that binds keys from 0x00 to 0xff, to just say the key's code.
This should work for all other layouts aswell.
Maybe it also works for other quake based games.
hf
the code for those who are interested:
#include <fstream>
int main(int argc, char* argv[])
{
std::ofstream out("keys.cfg");
int i;
out << std::hex; // out as hex
for(i=0; i < 16; i++)
out << "bind 0x0" << i << " \"say 0x0" << i << "\"" << std::endl;
for(i=16; i < 256; i++)
out << "bind 0x" << i << " \"say 0x" << i << "\"" << std::endl;
return 0;
}
- Attached Misc File: 68546-keys.cfg (12 Feb 2009, 6KB, 138 downloads)
Mon | Tue | Wed | Thu | Fri | Sat | Sun |
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 |
3205 Hits