mirror of
https://github.com/holub/mame
synced 2025-06-19 18:56:40 +03:00
Merge pull request #453 from felipesanches/powerdrift_motor_output
fix power drift outputs ("bank_motor_position" was never output)
This commit is contained in:
commit
b5510e66a5
@ -599,7 +599,7 @@ void segaybd_state::pdrift_output_cb1(UINT16 data)
|
|||||||
// normalize the data and subtract the vibration value from it*/
|
// normalize the data and subtract the vibration value from it*/
|
||||||
|
|
||||||
m_pdrift_bank = data - (data & 7);
|
m_pdrift_bank = data - (data & 7);
|
||||||
output_set_value("bank_data_raw", m_pdrift_bank);
|
output_set_value("bank_data_raw", m_pdrift_bank & 0xFF);
|
||||||
|
|
||||||
// position values from left to right
|
// position values from left to right
|
||||||
// 56 48 40 120 72 80 88
|
// 56 48 40 120 72 80 88
|
||||||
@ -607,7 +607,7 @@ void segaybd_state::pdrift_output_cb1(UINT16 data)
|
|||||||
// the normalized values we'll use
|
// the normalized values we'll use
|
||||||
// 1 2 3 4 5 6 7
|
// 1 2 3 4 5 6 7
|
||||||
|
|
||||||
switch (m_pdrift_bank)
|
switch (m_pdrift_bank & 0xFF)
|
||||||
{
|
{
|
||||||
case 56:
|
case 56:
|
||||||
// all left
|
// all left
|
||||||
|
Loading…
Reference in New Issue
Block a user