Changeset fa09449 in mainline for uspace/srv/kbd/genarch/src/nofb.c
- Timestamp:
- 2009-02-15T22:31:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cd9aa6
- Parents:
- 76dd25b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/genarch/src/nofb.c
r76dd25b rfa09449 67 67 switch (buf) { 68 68 case KEY_F5: 69 keybuffer_push (keybuffer,FUNCTION_KEYS | 5);69 keybuffer_push0(keybuffer,FUNCTION_KEYS | 5); 70 70 buf = count = 0; 71 71 return 1; 72 72 case KEY_F6: 73 keybuffer_push (keybuffer,FUNCTION_KEYS | 6);73 keybuffer_push0(keybuffer,FUNCTION_KEYS | 6); 74 74 buf = count = 0; 75 75 return 1; 76 76 case KEY_F7: 77 keybuffer_push (keybuffer,FUNCTION_KEYS | 7);77 keybuffer_push0(keybuffer,FUNCTION_KEYS | 7); 78 78 buf = count = 0; 79 79 return 1; 80 80 case KEY_F8: 81 keybuffer_push (keybuffer,FUNCTION_KEYS | 8);81 keybuffer_push0(keybuffer,FUNCTION_KEYS | 8); 82 82 buf = count = 0; 83 83 return 1; 84 84 case KEY_F9: 85 keybuffer_push (keybuffer,FUNCTION_KEYS | 9);85 keybuffer_push0(keybuffer,FUNCTION_KEYS | 9); 86 86 buf = count = 0; 87 87 return 1; 88 88 case KEY_F10: 89 keybuffer_push (keybuffer,FUNCTION_KEYS | 10);89 keybuffer_push0(keybuffer,FUNCTION_KEYS | 10); 90 90 buf = count = 0; 91 91 return 1; 92 92 case KEY_F11: 93 keybuffer_push (keybuffer,FUNCTION_KEYS | 11);93 keybuffer_push0(keybuffer,FUNCTION_KEYS | 11); 94 94 buf = count = 0; 95 95 return 1; 96 96 case KEY_F12: 97 keybuffer_push (keybuffer,FUNCTION_KEYS | 12);97 keybuffer_push0(keybuffer,FUNCTION_KEYS | 12); 98 98 buf = count = 0; 99 99 return 1; 100 100 default: 101 keybuffer_push (keybuffer, buf & 0xff);102 keybuffer_push (keybuffer, (buf >> 8) &0xff);103 keybuffer_push (keybuffer, (buf >> 16) &0xff);104 keybuffer_push (keybuffer, (buf >> 24) &0xff);105 keybuffer_push (keybuffer, scan_code);101 keybuffer_push0(keybuffer, buf & 0xff); 102 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 103 keybuffer_push0(keybuffer, (buf >> 16) &0xff); 104 keybuffer_push0(keybuffer, (buf >> 24) &0xff); 105 keybuffer_push0(keybuffer, scan_code); 106 106 buf = count = 0; 107 107 return 1; … … 112 112 113 113 if((buf & 0xff) != (KEY_F1 & 0xff)) { 114 keybuffer_push (keybuffer, buf);114 keybuffer_push0(keybuffer, buf); 115 115 buf = count = 0; 116 116 return 1; … … 123 123 && (buf & 0xffff) != (KEY_F5 & 0xffff) ) { 124 124 125 keybuffer_push (keybuffer, buf & 0xff);126 keybuffer_push (keybuffer, (buf >> 8) &0xff);125 keybuffer_push0(keybuffer, buf & 0xff); 126 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 127 127 buf = count = 0; 128 128 return 1; … … 134 134 switch (buf) { 135 135 case KEY_F1: 136 keybuffer_push (keybuffer,FUNCTION_KEYS | 1);136 keybuffer_push0(keybuffer,FUNCTION_KEYS | 1); 137 137 buf = count = 0; 138 138 return 1; 139 139 case KEY_F2: 140 keybuffer_push (keybuffer,FUNCTION_KEYS | 2);140 keybuffer_push0(keybuffer,FUNCTION_KEYS | 2); 141 141 buf = count = 0; 142 142 return 1; 143 143 case KEY_F3: 144 keybuffer_push (keybuffer,FUNCTION_KEYS | 3);144 keybuffer_push0(keybuffer,FUNCTION_KEYS | 3); 145 145 buf = count = 0; 146 146 return 1; 147 147 case KEY_F4: 148 keybuffer_push (keybuffer,FUNCTION_KEYS | 4);148 keybuffer_push0(keybuffer,FUNCTION_KEYS | 4); 149 149 buf = count = 0; 150 150 return 1; … … 155 155 && (buf & 0xffffff) != (KEY_F9 & 0xffffff)) { 156 156 157 keybuffer_push (keybuffer, buf & 0xff);158 keybuffer_push (keybuffer, (buf >> 8) & 0xff);159 keybuffer_push (keybuffer, (buf >> 16) & 0xff);157 keybuffer_push0(keybuffer, buf & 0xff); 158 keybuffer_push0(keybuffer, (buf >> 8) & 0xff); 159 keybuffer_push0(keybuffer, (buf >> 16) & 0xff); 160 160 buf=count=0; 161 161 return 1; … … 176 176 return 1; 177 177 default: 178 keybuffer_push (keybuffer, buf & 0xff);179 keybuffer_push (keybuffer, (buf >> 8) &0xff);180 keybuffer_push (keybuffer, (buf >> 16) &0xff);181 keybuffer_push (keybuffer, (buf >> 24) &0xff);178 keybuffer_push0(keybuffer, buf & 0xff); 179 keybuffer_push0(keybuffer, (buf >> 8) &0xff); 180 keybuffer_push0(keybuffer, (buf >> 16) &0xff); 181 keybuffer_push0(keybuffer, (buf >> 24) &0xff); 182 182 buf = count = 0; 183 183 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.