Unfortunately, there are very limited (if any) support for accessing CEC through graphics cards. This is a hardware and driver issue, which we have no control over.
When/if that is solved, your suggestion might work. But putting the codes in the wiki is a big NO-NO!! We have a device template system for such things (this is how IR codes are stored today). I suggest you try to understand device templates, as it will make it easier to understand the system
best regards,
sambuca