Hi,
If you only could tell (define, describe, draw) what you really want. It is not clear till now. This makes helping difficult, resulting in only a few answers.
So it´s on you how much time it takes to find a solution.
****
For sure you can use only one FF for CW and CCW.
The problem is that your sensors produce 6 edges per revolution in total.
Now you detect the rotation with every edge.
But with one FF you can not detect the direction on every edge.
***
If you see the inputs as three binary inputs. Then only 6 out of 8 states are allowed. (000 and 111 is not allowed)
And when you are ot one position then only two "next" postions are allowed. (one step right or one step left) all other positions are not allowed.
You could draw a state diagram for CW (and CCW) to see what inputs are needed for a FF to detect the direction. And WHEN to detect the direction.
Then you see the difficulty when the same input changes and you want to detect the direction with the help of exactely this input.
There
* either will be a timing problem you have to solve
* there is a definition problem you have to solve
But not impossible I think.
Klaus