Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | input: rework how input sources are added | wm4 | 2013-12-21 | 1 | -14/+8 |
| | | | | | | | | | | | | | | Until now, there were two functions to add input sources (stuff like stdin input, slave mode, lirc, joystick). Unify them to a single function (mp_input_add_fd()), and make sure the associated callbacks always have a context parameter. Change the lirc and joystick code such that they take store their state in a context struct (probably worthless), and use the new mp_msg replacements (the point of this refactoring). Additionally, get rid of the ugly USE_FD0_CMD_SELECT etc. ifdeffery in the terminal handling code. | ||||
* | terminal: abstract terminal color handling | wm4 | 2013-12-20 | 1 | -3/+11 |
| | | | | | | | | Instead of making msg.c an ifdef hell for unix vs. windows code, move the code to separate functions defined in terminal-unix.c/terminal- win.c. Drop the code that selects random colors for --msgmodule prefixes. | ||||
* | Rename getch2....c/h to terminal....c/h | wm4 | 2013-12-19 | 1 | -0/+63 |
"getch2" really tells nothing about what the heck this code does. It'd be even worse when moving the rest of terminal handling code there. |