|
Treehopper C# API
|
Nintendo Super NES (SNES) Controller More...
Public Member Functions | |
| SuperNesController (Spi spi, SpiChipSelectPin ps) | |
| override async Task | UpdateAsync () |
| Requests a reading from the controller and updates its data properties with the gathered values. More... | |
Protected Member Functions | |
| void | RaiseDPadChanged () |
Protected Attributes | |
| SpiDevice | dev |
| DPadState | dpad |
Properties | |
| Button | X [get] |
| Button | Y [get] |
| Button | L [get] |
| Button | R [get] |
| Button | A [get] |
| Button | B [get] |
| Button | Start [get] |
| Button | Select [get] |
| DPadState | DPad [get] |
| bool | AutoUpdateWhenPropertyRead = true [get, set] |
| int | AwaitPollingInterval = 25 [get, set] |
Events | |
| DPadStateEventHandler | DPadStateChanged |
| PropertyChangedEventHandler | PropertyChanged |
Nintendo Super NES (SNES) Controller
| SuperNesController | ( | Spi | spi, |
| SpiChipSelectPin | ps | ||
| ) |
|
virtual |
Requests a reading from the controller and updates its data properties with the gathered values.
Note that when AutoUpdateWhenPropertyRead is true (which it is, by default), this method is implicitly called when any sensor data property is read from — there's no need to call this method unless you set AutoUpdateWhenPropertyRead to false.
Unless otherwise noted, this method updates all sensor data simultaneously, which can often lead to more efficient bus usage (as well as reducing USB chattiness).
Reimplemented from NesController.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
get |
|
get |
|
get |
|
get |
|
getinherited |
|
getinherited |
|
getinherited |
|
getinherited |
|
getinherited |
|
getsetinherited |
|
getsetinherited |
|
inherited |
|
inherited |