summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-09-20 10:52:57 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-09-24 20:48:28 +0200
commit003dba5275c12a883104be2e670aeedfeb92f526 (patch)
treeee88bb71c843fc635ba408ef21478ece0876d639 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
parent017bfcda2be6683af57bedc972e6da2d37534784 (diff)
DSP: Convert accelerator to a C++ class
Slightly cleaner, allows DSP accelerator behaviour to be added to both HLE and LLE pretty easily, and makes the accelerator easier to unit test. I chose to include all accelerator state as private members, and to expose state that is accessible via registers with getters/setters. It's more verbose, yes, but it makes it very clear what is part of the accelerator state and what isn't (e.g. coefs). This works quite well for registers, since the accelerator can do whatever it wants internally. For example, the start/end/current addresses are masked -- having a getter/setter makes it easier to enforce the mask.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.h')
0 files changed, 0 insertions, 0 deletions